+ 1

Whts the logic of this code????

float xsqrt(float num) { float x, sqrt; sqrt = num / 2; x = 0; while(sqrt != x){ x = sqrt; sqrt = ( num/x + x) / 2; } return (sqrt); }

5th Jan 2021, 3:05 PM
Hamed Taherkhani
Hamed Taherkhani - avatar
1 Answer