Python4-6
# Enter a code
num=0
sum=0
while num<1000:
num+=1
if num%2!=0:
continue
sum+=num
print(sum)
结果:250500
是对的吗
# Enter a code
num=0
sum=0
while num<1000:
num+=1
if num%2!=0:
continue
sum+=num
print(sum)
结果:250500
是对的吗
2021-12-19
举报