编写程序,输出100以内能被2和5整除的数字
for i in range(10): print((i+1)*10)
for i in range(101): #对2和5求余为0即能被2和5整除 if not i%2 and not i%5: print(i)
for i in range(101): if i % 2 == 0 and i % 5 == 0: print(i)
如果觉得答案对你有帮助,请点击下采纳,谢谢~