找出1-100以内能被7整除的数,求和并输出。
收起
sum=0 for i in range(1,100): if i%7==0: print(i,end=' ') sum+=i print(sum)
报告相同问题?