Answer to Question #185501 in Python for Woyengimiesindo Malati

Question #185501

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


1
Expert's answer
2021-04-27T15:17:57-0400
for i in range(20, 221):
    print('Square of', i, 'is', i*i)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS