
for循环练习题
发布时间:
js
n=0
for i in range(6):
n+=i
print(n)
js
n=0
for i in range(6):
if i%2:
n+=i
print(n)
js
t=0
for i in range(10):
if i%3 and i%7:
t+=i
print(t)