Answer to Question #312327 in Python for junior

Question #312327

Using a while loop: Write a program to print integers 1-50 and their cubes.

1
Expert's answer
2022-03-16T07:08:07-0400
i = 0

while i < 50:
    i= i+1
    print((i*i*i), end = ' ')

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