Question: 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
