Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. width = 10
  2. total = width**2
  3.  
  4. sum = 1
  5.  
  6. while total != 1:
  7. for x in range(4):
  8. sum += total
  9. total -= width - 1
  10. width -= 2
  11.  
  12. print sum
Add Comment
Please, Sign In to add comment