帮忙找一下错误,最好能帮忙改一下(x=2n)是否有错误
sum = 0
x = 0
n=1
while True:
x = x + 1
if x > 100:
break
while x=2n:
n=n+1
continue
if n>50:
break
sum=sum+x
print sum
sum = 0
x = 0
n=1
while True:
x = x + 1
if x > 100:
break
while x=2n:
n=n+1
continue
if n>50:
break
sum=sum+x
print sum
2016-10-02
举报