i am confused how to take list of numbers in “simple input” question assignment question
like in input they are not taking number of elements in list
List of input without cin>> n (no of elements in the list)
hello @naaz
just use while loop. and keep reading numbers till ur cummulative sum is not negative.
check this ->
