Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. def squared():
  2.     count = 1
  3.     for i in range(11, 100):
  4.         count += 1
  5.         if i % 10 != 0:
  6.             if len(str(i ** 2)) == 3 and count % 10 != 0:
  7.                 print(i ** 2, end='  ')
  8.             elif len(str(i ** 2)) == 4 and count % 10 != 0:
  9.                 print(i ** 2, end =' ')
  10.             else:
  11.                 print(i ** 2)
  12.                 count = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement