Write a Python program that takes in three integers from the user and finds out which number is the greatest. Print the greatest number.
Example:
Input: 3, 7, 5
Output: The greatest number is 7.
Use if-else statements to compare the three numbers.
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
c = int(input("Enter third number: "))
if a > b and a > c:
print(f"The greatest number is {a}.")
elif b > a and b > c:
print(f"The greatest number is {b}.")
else:
print(f"The greatest number is {c}.")
NOTEOwing to browser caching, any code input into the Trinket IDE might carry over across page refreshes or when transitioning between different questions. To commence with a clean slate, either click on the 'Reset Button' found within the IDE's Hamburger icon (☰) menu or resort to using Chrome's Incognito Mode.