Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def squared():
- count = 1
- for i in range(11, 100):
- count += 1
- if i % 10 != 0:
- if len(str(i ** 2)) == 3 and count % 10 != 0:
- print(i ** 2, end=' ')
- elif len(str(i ** 2)) == 4 and count % 10 != 0:
- print(i ** 2, end =' ')
- else:
- print(i ** 2)
- count = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement