Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a while loop that adds the variable number to the variable sum _ of _ numbers. Then it should prompt the user with text
Write a while loop that adds the variable number to the variable sumofnumbers. Then it should prompt the user with text
# to enter another whole number int and add it to sumofnumbers. The loop should iterate as long as the user enters an even whole number. The whole number can be positive or negative.
# Print sumofnumbers AFTER EXITING the while loop
sumofnumbers
number intinputEnter a whole number:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started