<reponame>CarbonDDR/al-go-rithms
def squareRoot(n):
    x = n
    y = 1
    e = 0.000001
    while (x - y > e):
        x = (x + y) / 2
        y = n/x
    return x
print(squareRoot(50))
def squareRoot(n):
    x = n
    y = 1
    e = 0.000001
    while (x - y > e):
        x = (x + y) / 2
        y = n/x
    return x
print(squareRoot(50))