Do we need to take n(number of inputs to be taken)

in the problem statement number of inputs to be taken is not shown. Do we have to do it just for 5 elements? Or the first line should be number of inputs

@prasadnitesh202,
Keep taking inputs until the sum is positive. As soon as it becomes negative, stop processing as mentioned in the question