link to my code-https://ide.codingblocks.com/s/66056
link to question-https://online.codingblocks.com/player/16974/content/4693
in my code problem is that it output the number until sum>0, but if suppose the digit u enter the last number which is big and it makes the total sum +ve it output that number too which it should not .
for ex-input are 1,2,88,-100,1212
my output is -1,2,88,1212 instead of this it should be 1,2,88…only.