i dont understand as to for how long i have to get inputs. there is no condition for length on inputs.
first i thought i have to get user input till cumulative sum becomes negative but thats not the case. So could you please help me regarding the condition upto which i have to take the user inputs