for loops ,while loops, bisection method of square root