Question: Write a C++ program that uses nested for-loops to display a rectangle. The program should ask the user to enter the number of rows

Write a C++ program that uses nested for-loops to display a rectangle. The program should ask the user to 

Write a C++ program that uses nested for-loops to display a rectangle. The program should ask the user to enter the number of rows and the number of columns. The number of rows should be between 1 and 100 inclusive. The number of columns should be between 1 and 50 inclusive. Appropriate error message should be displayed if the user inputs are invalid, The rectangle should consist of* and # as in the following example: If the number of rows is 5 and the number of columns is 9 then the rectangle should be: #*# ##*###### ###*#### ####*####

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include using namespace std int main declare variabl... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!