Question: Write a program that requests that the user inputs any numbers, and if the user inputs the number 5, the program should print the sum

Write a program that requests that the user inputs any numbers, and if the user inputs the number 5, the program should print the sum of all numbers. Make sure 5 does not get added to the total sum.

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer def maino numbers while True try userinput intinpu... View full answer

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 Programming Questions!