Question: Using while loop, write a C++ program that prints a rectangle on the screen by following the instructions below: . The program asks the

Using while loop, write a C++ program that prints a rectangle on the screen by following the instructions

Using while loop, write a C++ program that prints a rectangle on the screen by following the instructions below: . The program asks the user to enter the no. of rows and columns. The program then asks the user to enter the character that is used to print the rectangle The program then prints the rectangle on screen using the character provided by the user. . Sample Run: If the user enters the rows 3 and columns as 5 and character as %, the output of the program will be: 88888

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

C include int main int rows columns char character Get user input for rows c... 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 Computer Network Questions!