Write a program that takes three numbers as input from the user, and prints the largest.
Enter a number: 20
Enter a number: 50
Enter a number: 5
Largest: 50
numbers = []
for _ in range(3):
num = int(input("Enter a number:"))
numbers.append(num)
print("Largest: ", max(numbers))
Enter a number: 20
Enter a number: 50
Enter a number: 5
Largest: 50
Comments
Leave a comment