My two test cases are failing

could you please correct it why two test cases are failing

@rssrivastavarohan There was only a minor mistake in your code. We have to stop printing the input when the sum becomes less than 0, not the input numbers. So, I have modified your code accordingly. Also, I would suggest you to always a do a dry run of your code before posting.
Here is the modified code :