Python/Project Euler/Problem 01/sol5.py
alpylmz dd62f1b802 Create sol5.py (#425)
added a solve for the problem
2019-05-26 23:34:49 +05:30

9 lines
112 B
Python

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)