Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage = int(input("Stage number: "))
- infinite = 0
- blocks = 0
- while infinite == 0:
- while stage != 0:
- blocks = blocks + stage
- stage = stage - 1
- print(blocks)
- stage = int(input("Stage number: "))
- infinite = 0
- blocks = 0
- input("done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement