a) Use for loops to construct a program that displays a pyramid of numbers on the screen.
The pyramid should look like this:
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Ask the user to enter a digit (0-9) and display the pyramid with limit up to that number (as shown above).
The pyramid should look like this:
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Ask the user to enter a digit (0-9) and display the pyramid with limit up to that number (as shown above).
Comment