+ 2
Create a while loop that will keep prompting for input until an exit condition is met. int x; int sum = 0; while(x != "exit"){ sum += x; }
9th Jul 2022, 2:40 AM
Rik Wittkopp
Rik Wittkopp - avatar