Compare commits
1 Commits
ed996135ac
...
7ce2809140
| Author | SHA1 | Date |
|---|---|---|
|
|
7ce2809140 |
|
|
@ -0,0 +1,2 @@
|
|||
# macOS
|
||||
.DS_Store
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
sum = 0
|
||||
|
||||
for i in range(1000):
|
||||
if (i % 3) == 0 or (i % 5) == 0:
|
||||
sum += i
|
||||
|
||||
print("The sum of all the multiples of 3 or 5 is: %d" % (sum))
|
||||
Loading…
Reference in New Issue