Why one test case is not passing (code given in discription)

hi @aakshatmalhotra100
image
function parameter mei bhi long long int kro…
ur code will pass all test cases…

sir still its not passing the last test case (after even modifiying the function parameter))

hi @aakshatmalhotra100
ur code was failing at one test case… ie if n = 0
then expected o/p is 5, but ur code was giving o/p as 0… so just put a check that if n = 0 simply print 5 and return…
corrected code --> https://ide.codingblocks.com/s/642704
hope it clears all ur doubts…

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.