I've made this program to simulate the way to find square roots without a calculator and without sqrt()...no duh. But here it is. I don't understand why it doesn't work and why I'm getting that message.
By the way, if you don't know it already you can find square roots by repeating the formula : new guess = 5 * (guess + NumberYoureLookingFor / guess)
Edit: Oops, the initial guess x[0] needs to be "somewhat close" to the real answer. I suspect this is why you were dividing the number by 2 on line 14. In which case, change line 16 to