i don,t get odd row code in this problem plz elaborate it
Odd block in this manmohan loves problem
Hey @rakesh800650
For the odd row, you’ve to print as many 1s as is the serial number of the row
The inner code of the odd row part is:
int col = 1;
if(row%2!=0){
while(col <= row){
cout << 1;
col++;
}
}
so for the odd rows, this prints 1 row no. of times, where col is the counter that goes from 1 to row.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.