I didn’t understand the stopping criteria for else block
While loop condition for else block
in the else block
while(col <= row-2) {
cout << 0;
col+=1;
}
we are incrementing the col so the while loop will get out it once col > row-2
I didn’t understand the stopping criteria for else block
in the else block
while(col <= row-2) {
cout << 0;
col+=1;
}
we are incrementing the col so the while loop will get out it once col > row-2