Skip to content

Commit

Permalink
add euler028 solution (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kailanefelix authored Oct 3, 2021
1 parent d1e4ead commit 53167c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions euler0XX/euler028.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
total, number, step = 1, 1, 2

for _ in range(500):
for _ in range(4):
number = number + step
total = total + number
step = step + 2

print(total)

0 comments on commit 53167c7

Please sign in to comment.