0
How to write a program that adds the numbers until user enters 0.
Help please
4 Answers
+ 1
In which programming language do you want to write your program? (Please tag the language)
Please post your attempt, so we can help you solving the task.
+ 2
Use loop and give condition like this
If (number==0)
Then break;
Otherwise user input continue.
+ 2
I do know much c++ but I think you need the curly brackets for your while loop {}.
Also the condition for the while loop should be (number > 0) or !(number == 0) as you want to return and quit, when 0 is entered
0
Lisa help please. https://code.sololearn.com/c4E23lFBXe9h/?ref=app