Sfoglia il codice sorgente

Multiples of 3 and 5

Adel Qalieh 13 anni fa
parent
commit
fe565e1584
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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