Broken calculator


why it is still wrong?

Your code is not able to give result for larger factorial values.
Check for 100!. You code gives output as 0.
Refer this


still not passing 1 test case

Increase MAX to 10^5 and then check.

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.