A few test cases are failing

Can’t understand the problem

Hey @ishabehera, actually according to question assume that you are the driver/host and i am the user. Basically you have to ask one number at a time from me, i will tell you a number. You have to store the total sum value of all previous numbers which i said.

If now the sum becomes negative, you stop asking me further, otherwise, you update total sum, print the number which i just told you and, again ask me a number.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

Thanks I got it solved

1 Like

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.