Question: Using C++ Write a program that takes input from a user for number of rows and number of columns and prints out a block of

Using C++  Using C++ Write a program that takes input from a user
for number of rows and number of columns and prints out a

Write a program that takes input from a user for number of rows and number of columns and prints out a block of characters that is based on these 2 parameters. The program should keep asking the user for input, and printing out the result, until the user enters zero for each of the input parameters. A session should look exactly like the following example (including whitespace and formatting - although note that there is no whitespace at the end of each of these lines), with all manners of different numbers for inputs and the output $./block Enter number of rows and columns 10 10 X. X.X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X.X. X. X.X.X.X.X.X.X.X.X X.X.X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X.X X.X.X.X.X.X.X.X.X.X. X. X.X.X.X.X.X.X.X.X. X. X.X.X.X.X.X.X.X.X. Enter number of rows and columns: X. X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X X.X.X.X.X.X.X.X.X X. X.X.X.X.X.X.X.X X.X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X. X.X.X.X.X.X.X.X.X

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!