Hello, I have donde this wsq which is about the babylonic method, so there already an algoritm established to calculated te square root, which is a loops.
I found the algoritm of this method in wikipedia: Cálculo de la raíz cuadrada http:/
I made it in a funtion:
my code is here:
#WSQ13 by Osvaldo Mendoza is licensed under a Creative Commons Attribution 4.0 International License.