Hello volks, I'm trying to write an array that add 10 integers from user's input. That will include negative numbers. My program seems fine with different test, but when I add 9 ones, and one -1, the result is 8, but the answer supposed to be 9.
(What I tested to Enter 1 1 1 1 1 1 1 1 1 -1, result =8). Please point out my error! Thank you