Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- steps, inc, total, runningtotal = 0, 2, 1, 1
- while steps < 500:
- for x in range(4):
- runningtotal += inc
- total += runningtotal
- steps += 1
- inc += 2
- print(steps)
- print(total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement