Where's the Biggest One? by CodeChum Admin We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate the position of the largest among 5 numbers. There are only 4 possible cases for this mission: - if the largest digit is the first digit, print "Leftmost" - if the largest digit is the third digit, print "Middle" - if the largest digit is the last digit, print "Rightmost" - if none of the above is correct, print "Unknown"   Now, show me how far you've understood your lessons! Input A line containing a five-digit integer. 1·4·6·3·2 Output A line containing a string. Middle     !!!PLEASE USE PYTHON FOR CODING

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question

 Where's the Biggest One?

by CodeChum Admin

We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate the position of the largest among 5 numbers. There are only 4 possible cases for this mission:

- if the largest digit is the first digit, print "Leftmost"

- if the largest digit is the third digit, print "Middle"

- if the largest digit is the last digit, print "Rightmost"

- if none of the above is correct, print "Unknown"

 

Now, show me how far you've understood your lessons!

Input

A line containing a five-digit integer.

1·4·6·3·2

Output

A line containing a string.

Middle
 
 
!!!PLEASE USE PYTHON FOR CODING
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT