Write c program that uses nested for loops and asks the


Write C++ program that uses nested for loops and asks the user to enter the height and width of a rectangle. A line (rows) will represent the width and the columns will represent the height. If the user enters, for example, 5 for width, your program will print the following 12345. If the user enters, for example, 3 for height, the program will repeat the row 3 times similar to the following:

12345

12345

12345

Example 2: if the user enters width = 3 and height = 6, the program will display:

123

123

123

123

123

123

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write c program that uses nested for loops and asks the
Reference No:- TGS02483501

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)