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 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
C include int main int rows columns char character Get user input for rows c... View full answer
Get step-by-step solutions from verified subject matter experts
