Need programming logic
I need to do program for calculating square root of number programatically not using any function
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 6, 2011, 5:30 AM
VulpesPosted Apr 6, 2011, 10:06 AM
Here's a much improved version (still using simple arithmetic) in which, hopefully, I've eliminated those problems. The output of Math.Sqrt is also shown for comparison:
Mayur GujrathiPosted Apr 6, 2011, 4:37 AM
FroglegPosted Apr 6, 2011, 4:32 AM
double j = Math.Sqrt(i);