用python打印1~100之间能被7整除,但不能同时被5整除的所有整数

如题所述

for i in range(1,101):
if i%7==0 and i%5!=0:
print(i)

温馨提示:答案为网友推荐,仅供参考
相似回答