mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00:00
parent
f56dd7f8e3
commit
dd62f1b802
8
Project Euler/Problem 01/sol5.py
Normal file
8
Project Euler/Problem 01/sol5.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
a=3
|
||||
result=0
|
||||
while a=<1000:
|
||||
if(a%3==0 and a%5==0):
|
||||
result+=a
|
||||
elif(a%15==0):
|
||||
result-=a
|
||||
print(result)
|
Loading…
Reference in New Issue
Block a user