Minimum money needed

why this code iss showing error…
link of code

@dakshi
Don’t use INT_MAX
Use some other big number like 100000 instead
When you add something to INT_MAX it becomes negative and thus the weird answer

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.