python計算100之內7的倍數和與個數

a = 0 count = 0 sz = [] num = 0 while a < 100: a += 1 if a%7 == 0: sz.append(a) count += 1 print("7的倍數是:",a) for i in range(len(sz)): num += sz[i] print("100之內有%s
相關文章
相關標籤/搜索