HOME

Write a program to generate squared numbers

Create a program that will ask the user for a number and then print out a list of numbers from 1 to the number entered and the square of the number.

For example, if the user entered ‘3’ then the program would output:

1 squared is 1
2 squared is 4
3 squared is 9

Construct a pseudocode answer by drag&dropping and reordering lines from the left to the right.

Jumble the blocks! Try your code!