Implement int sqrt(int x)
.
Compute and return the square root of x.
int mySqrt(int x)
{
if(x==1)
return 1;
/* for(int i=2;i<=x/2;i++)
{
if(x=i*i)
{
return i;
}
}*/
return (int)sqrt(x);
}