Computer Science, asked by shuheb6584, 9 months ago

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

Answers

Answered by saiphysiocare1
0

Explanation:

As soon as the condition gets false as we enter a number which is given as input is greater than the sum then we have the situation as negative cumulative value. Thus the loop execution stops and control comes out of the loop and prints the resultant as negative value involved.

Please mark me as brainliest if it helps and follow me and I will also follow you back

Similar questions