Question: 8. Write a C++ program that queries the user for a number between 0 and 9 and then prints to the console a numeric
8. Write a C++ program that queries the user for a number between 0 and 9 and then prints to the console a numeric pyramid (see examples below). [12 marks] For input n = 0 print: For input n = 2 print: 2 111 00000 For input n = 1 print: 1 000 For input n = 3 print: 3 222 _11111 0000000 We use the symbol to highlight where to output a blank space.
Step by Step Solution
There are 3 Steps involved in it
Based on the image provided I see that you need a C program tha... View full answer
Get step-by-step solutions from verified subject matter experts
