Browse Source

Multiples of 3 and 5

Adel Qalieh 13 năm trước cách đây
mục cha
commit
fe565e1584
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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