Question: Write a simple program in python that will ask the user to enter three integers, A , B , and C . Then, it should

Write a simple program in python that will ask the user to enter three integers, A , B , and C .

Then, it should use if/elif/else's to determine which of these three values is in the middle of the other two. Finally, it should display a message like "The middle value was {value here}." For example, if I enter 1, 5, and 10, it should display "The middle value was 5," no matter what order I enter those values. Embed screenshots of your code and results, showing that it works in all of these cases:

* A is the middle

* B is the middle

* C is the middle

* All three values are the same

* Some values are negative

* Some values are exactly zero

* Some values are very large

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!