0
import math


def main():  
    loop=eval(input("How many times do you want to run the loop?" ))  
    x=eval(input("What number are you taking the square root of? "))  
    for i in range(loop):  
        x=guess  
        x/2=(guess+(x/guess))/2  
    print(guess)  

main()
4

1 回答 1

1

以下行导致语法错误:

x/2=(guess+(x/guess))/2 

也许以下错字?

x = (guess+(x/guess))/2 
于 2013-09-29T19:47:00.823 回答