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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 6, 2011, 1:30 AM EDT
FroglegRank #1,020 · 1.9K reputationPosted Apr 6, 2011, 12:32 AM EDT
double j = Math.Sqrt(i);
Mayur GujrathiRank #666 · 3.6K reputationPosted Apr 6, 2011, 12:37 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 6, 2011, 6:06 AM EDT
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: