Initialize an int variable named as sum to 0. Write the while loop that lets the user enter a number. The number should be added to sum and the result is stored back to the variable sum. The loop should iterate as long as sum contains a value less than 200. After the loop stop, display message: "sum = - the loop stops"
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Initialize an int variable named as sum to 0. Write the while loop that lets the user enter a number. The number should be added to sum and ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Initialize an int variable named as sum to 0. Write the while loop that lets the user enter a number. The number should be added to sum and the result is stored back to the variable sum.