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
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
Get step-by-step solutions from verified subject matter experts
