please see to my error . that why my code is not working.
https://ide.codingblocks.com/s/249076. this is the link for the code
please see to my error . that why my code is not working.
https://ide.codingblocks.com/s/249076. this is the link for the code
hi @Ritesh_jindal change line 19 to
for(int i=endCol;i>=startCol;i--){
your loop condition was incorrect.
Please mark your doubt as resolved in case you dont have any further queries.
hi @Ritesh_jindal i have already corrected the code, the mistake is in the 3rd for loop, have a look.
no it is not working
bottom line is not printing
mam you seen the problem
@Ritesh_jindal i’d suggest you do a dry run of your code once and see how the variable values are changing, you’ll see why the last row is not being printed
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.