This website works better with JavaScript
Sākums
Izpētīt
Palīdzība
Reģistrēties
Pierakstīties
adelq
/
project-euler
spogulis no
https://github.com/adelq/project-euler.git
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
0
Faili
Problēmas
0
Koks:
b96c3bbdba
Atzari
Tagi
master
python3
project-euler
/
1.py
1.py
103 B
Vēsture
Neapstrādāts
1
2
3
4
5
summation = 0
for i in range(1000):
if (i % 3 == 0) or (i % 5 == 0):
summation += i
print(summation)