Question: Write a program that reads in a number, let's call it limit, and then prints a chart which starts with the number 1 and goes
Write a program that reads in a number, let's call it limit, and then prints a chart which starts with the number 1 and goes up to limit. For each number from 1 to limit, the chart should show the number, the number squared and the number cubed For example, if the user enters 10, the program should print: num squared cubed 2 3 4 16 25 36 49 64 81 100 27 64 125 216 343 512 729 1000 10 Use a for loop to do this task
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
