+ 2
How to find square root of an integer..
i made an algorithm but it is wrong ... could u help to get the right way to find square root..
3 Respuestas
+ 16
thats easy
1) number must be +ve as sq. ia always +ve
2) now run a loop from x=1 to x <=n/2
3) see whether x*x==n return true or not
4) if return true , just print x & break
//hope it helps , I think simple only 😅
+ 6
https://en.m.wikipedia.org/wiki/Newton%27s_method
Use Newton's Method
0
Most programming languages have a math library containing a square root function