Skip to content

Commit

Permalink
Create sol5.py (TheAlgorithms#425)
Browse files Browse the repository at this point in the history
added a solve for the problem
  • Loading branch information
alpylmz authored and AnupKumarPanwar committed May 26, 2019
1 parent f56dd7f commit dd62f1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Project Euler/Problem 01/sol5.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit dd62f1b

Please sign in to comment.