Why test case fails even if the program runs properly

I have written a program which gives proper output but still test cases fail

@numanshaikh25
corrected code -->

@numanshaikh25
Is there anything else or shall I mark it as resolved??

You can mark as resolved Thankyou for your help

1 Like

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.