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"
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to 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.