+ 1
sum
ive modified it to ask a user to enter the integer values. but i want to write the statement so that: if the user inputs a negative integer, thats when it adds all the outputs, using the if else. https://code.sololearn.com/cAL0o881L54Z/?ref=app
7 Respostas
+ 1
Enter a positive integer: 5
Enter next value: (any value)
Enter next value: (any value)
Enter next value: (any value)
Enter next value: (any value)
The sum of all outputs is: (sum of all values entered)
0
Can you please give an example of your expected output?
0
https://code.sololearn.com/crDBeR2jX75I/?ref=app
//Check this
0
doesn't work
0
it still adds after i input a negative number
0
What input you gave and what was your expected output?
0
thanks for trying, ive figured it out