Please help with this C++ code BLOCK CPP Write a program that takes input from a
ID: 3817094 • Letter: P
Question
Please help with this C++ code
BLOCK CPP 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 outputExplanation / Answer
Answer. Solution for above problem
#include <iostream>
using namespace std;
void printdata(int i,int j){
for(int ti=0; ti<i;ti++){
for(int tj=0; tj<j; tj++){
cout<<"X.";
}
cout<<""<<endl;
}
}
void starter(){
int i;
int j;
cout<<"Enter number of row and Column"<<endl;
cin>>i;
cin>>j;
if(i==0 && j==0){
// do nothing
}else{
printdata(i,j);
starter();
}
}
int main() {
starter();
return 0;
}