Question: Was wondering how to write this program using C++. Using a while loop that doesnt contain any branch structures, and also using nested loops. We

Was wondering how to write this program using C++. Using a while loop that doesnt contain any branch structures, and also using nested loops. We cannot use string variables, global variables, or arrays and functions/vectors.
Goals: Practicing nested loops Problem: Create a program that prompts the user to enter a character and a whole number greater than or equal to 1. Use a while loop that does not contain any branch structures to confirm that the user entered a valid value (you do not have to check that the whole number is a whole number). Do not use a string variable. Next use nested loops of your choice to create a patter than output the entered whole number of the character on the first row, one less character on the second row, two less characters on the third row etc. until the last row only contains 1 of the character. For example if the user entered # for the character and 8 for the whole the output would look like If the user entere N for the character and 5 for the whole number, the output would look like If the user entered w for the character and 4 for the whole number, the output would look like WWw Do not use any concepts beyond Chapter 5 (e.g. arrays or functions) of your textbook
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
