Simple Input . - please let me know the issue
Hey Gaurav, read the problem carefully, it is mentioned that you have to stop processing input when cumulative sum becomes negative, but you are iterating in for loop from i=1 to 10 only. So update your for loop’s terminating condition as sum<0.
One more thing is when you post a doubt please mention the problem’s exact name and copy your code on ide, save it and share that link here, instead of sending the screenshot.
