Code is correct but it is showing error

Error: Dang! You couldn’t score a perfect 100 because you failed one or more testcases. This means that your program didn’t account for all input cases (did you account for negative numbers, for example?).

Hey @rajnarayan.bhagat it means that your code is failing some side test cases which you have to think of. When you will code it accordingly. You will get perfect 100.

Hello Dear,

Okay. Let me try.

If your issue is solved. Then do mark it as resolved.

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.