赞
踩
for:
j=0
k=0
for i in range(1,101):
if i%2==0:
j+=i
else:
k+=i
print(j)
print(k)
while:
i=0
j=0
k=0
while i<=100:
if i%2==0:
j+=i
else:
k+=i
i+=1
print(j)
print(k)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。