Advertisement
Jacobacon215

Untitled

Aug 29th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. stage = int(input("Stage number: "))
  2.  
  3. blocks = 0
  4.  
  5. while stage != 0:
  6.     blocks = blocks + stage
  7.     stage = stage - 1
  8.  
  9. print(blocks)
  10.  
  11. input("done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement