Not able to find the logic to this problem

what will be the condition and loop structure please explain

Hii Ritu,
see in simple input question you have to take integers from the user till the sum is not equal to 0.
So, declare a variable sum and initialize it with 0. then start a loop and its conditon will be sum >= 0 then inside the loop take integer from the user and add integer to the sum. if sum is greater than or equal to 0 print the integer.

Hi Ritu,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.