Skip to content

Iterative fibonacci with unittests from slash #882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 8, 2019
Prev Previous commit
Update and rename Project Euler/Problem 01/sol5.py to project_euler/p…
…roblem_01/sol6.py
  • Loading branch information
poyea authored Jun 8, 2019
commit c368b2a06f578ac2f49452cdfe523b6b9b2f631e
8 changes: 0 additions & 8 deletions Project Euler/Problem 01/sol5.py

This file was deleted.

9 changes: 9 additions & 0 deletions project_euler/problem_01/sol6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
a = 3
result = 0
while a < 1000:
if(a % 3 == 0 or a % 5 == 0):
result += a
elif(a % 15 == 0):
result -= a
a += 1
print(result)