This code is executed in coding blocks IDE but here it is not showing any output. Where did i go wrong.
May i know whats wrong with my code
hello @tarunasree123
ur logic is wrong ,u need to mainain cumulative sum and stop when that sum become negative .

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.