plz suggest how which test cases i have to include to submit this code.
Test Cases check
Ans to the question is present in the question itself, as it said print the numbers till you get positive cumulative sum, so you need to take input till you got the positive cumulative irrespective of the number inputs.
Algo:
- Put a loop till the END OF INPUT.
- Add the new number to the previous sum.
- If the sum is positive print the current number.
- Otherwise, break the loop.
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.