Write a program with loops that prints the square of each number from 20 up to 220.
Output Segment
Square of 20 = 400
Square of 21 = 441
Square of 22 = 484
Square of 23 = 529
Square of 24 = 576
:
:
Square of 220 = 48400
for i in range(20, 221):
print('Square of', i, 'is', i*i)
Comments
Leave a comment