Largest of Three Numbers
Programs with input · Beginner · about 4 min
Read three whole numbers, one per line, and print the largest as Largest: 42. Two or all three of them may be equal, and they may be negative.
The prompts inside input() are not checked, only what you print.
Example
You type:
12 42 7
The program prints:
Largest: 42
a = int(input("First number: "))
b = int(input("Second number: "))
c = int(input("Third number: "))
# Print the largest
The solution opens after your first Check.