top of page
Maximum of Three
Selection
2 Medium
Write a program that asks the user to enter three numbers. The program should then calculate and output the largest of the three.
💡 How to Approach This Challenge:
- Inputs: Three separate numbers from the user
- Outputs: The largest of the three numbers
- Calculations/Logic: Use comparison operators (
if/elif) - Structure: Use
ifandelsestatements - Functions: Optional (e.g., max_of_three(a, b, c))
📄 Suggested Pseudocode:
INPUT num1 INPUT num2 INPUT num3 IF num1 > num2 AND num1 > num3 THEN OUTPUT num1 ELSE IF num2 > num3 THEN OUTPUT num2 ELSE OUTPUT num3
bottom of page
