sum=0
for i in range(1,101):
if (i%2==0):
sum=sum+i
print('sum=%d'%sum)
奇数偶数之和
最新推荐文章于 2024-11-02 16:28:26 发布
sum=0
for i in range(1,101):
if (i%2==0):
sum=sum+i
print('sum=%d'%sum)