Please explain sir what the question is saying how to do it

,Given a list of numbers, stop processing input after the cumulative sum of all the input becomes negative.

1 Like

can you please explain your question?
what do you want to ask?

solution hint:
cumulative sum is calculated as: sum = sum + x; //x is input

thanks

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.