Getting wrong answer in column wise print


the output is correct with the test case input but is not accepting the answer

Hello @prashantgupta9876 please wait i am checking your code:

Hello @prashantgupta9876 this is the correct code and now passing all the test cases:


i have commented the mistake.
if you have any doubt you can ask here:
Happy Learning!!

yes sir, thankyou sir for helping out.

@prashantgupta9876 if you feel that your doubt is cleared you can mark them as resolved.
Happy Learning!!