Hi, the code I have written is perfectly correct but it is showing that all the test cases are failing whereas they are not. Pls help.
No mistake in code
if(m>1 && m<10 && n>1 && n<10){
you don’t have to put this condition explicitly
n and m may be equal to 10 for this input code will not run that’s the problem
remove this condition code will pass testcases
removed it but still not working
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course
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.