if i take inputs and print the elements in same loop while cumulative sum becomes negative then there how will i take extra input given in inputs that is 49?
How to take extra input as 49
Hey @Shashitarwey, you are not required actually to take that extra input . When you give the custom input of lets say :
1
2
88
-100
Your code will automatically take input just till 88 and stop processing after 88.
Hope this helps !
Happy coding 