Square Root (Integral)
Square Root (Integral)
Send Feedback
Square Root (Integral)
Integer N
Square root of N (integer part only)
0 <= N <= 10^8
10
3
4
2
#include<iostream>using namespace std;
int main() { // Write your code here int n; cin>>n; int i=0; for(;n>=i*i;i++){ } cout<<i-1;}
Comments
Post a Comment