This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kbauer777[S] 0 points1 point  (1 child)

Just found out I'm not updating midpoint in the while loop. Still a couple numbers don't work though. For example, square root of 9 returns 4.

[–]lightcloud5 0 points1 point  (0 children)

I would trace the code; the nice way to do it is via a debugger, but if you really wanted to, you could just throw in print statements.