Middle Digit Comparison
Difficulty: Medium
Phase: 1 · Conditional Thinking
XP Reward: 20 XP
Topics: Conditional Thinking, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Take a 3-digit number. Print 'Largest', 'Smallest', or 'Neither' depending on whether the middle digit is strictly the largest, smallest, or neither among the three digits. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 193
Output: Largest
Explanation: Sample execution for input 193