Ver código fonte

Multiples of 3 and 5

Adel Qalieh 13 anos atrás
pai
commit
fe565e1584
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      1.py

+ 5 - 0
1.py

@@ -0,0 +1,5 @@
+summation = 0
+for i in range(1000):
+	if (i % 3 == 0) or (i % 5 == 0):
+		summation += i
+print summation