Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions