Advertisement
Jacobacon215

Untitled

Aug 22nd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. infinite = 0
  2. while infinite == 0:
  3.     bsquares = int(input("Square unit length: "))
  4.     tsquares = 0
  5.     while bsquares != 0:
  6.         tsquares = tsquares + (bsquares*bsquares)
  7.         print(bsquares)
  8.         print(tsquares)
  9.         bsquares = bsquares - 1
  10.     print(tsquares)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement