I am not getting output ... what is the mistake in this code
Hey @pmschhabra o/p is coming fine. maybe you are not giving input. give the input m and n resp then
the output will come.
i tried to run it but as soon as i try to give input it shows process returned with some garbage value
@pmschhabra i ran it on ide and on my complier and it worked fine.
maybe you are running the wrong code or there is some issue with the compiler you are working.
try to run it on an online compiler or ide.
give only 2 input
example:
4 4
Hope this resolved your doubt.
Remember to mark it as resolved in my doubts
section 
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.