Skip to content

Commit dd62f1b

Browse files
alpylmzAnupKumarPanwar
authored andcommitted
Create sol5.py (TheAlgorithms#425)
added a solve for the problem
1 parent f56dd7f commit dd62f1b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Project Euler/Problem 01/sol5.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
a=3
2+
result=0
3+
while a=<1000:
4+
if(a%3==0 and a%5==0):
5+
result+=a
6+
elif(a%15==0):
7+
result-=a
8+
print(result)

0 commit comments

Comments
 (0)