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 sum_of_numbers. Then it should prompt the user with text
# to enter another whole number (int) and add it to sum_of_numbers. The loop should iterate as long as the user enters an even whole number. The whole number can be positive or negative.
# Print sum_of_numbers AFTER EXITING the while loop
sum_of_numbers =0
number = int(input('Enter a whole number: '))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!