83.2k views
3 votes
Write a program that takes three numbers as input from the user, and prints the largest.

1 Answer

10 votes

Answer:

I'll be using python:

__________________________

a=int(input("Enter a number :"))

b=int(input("Enter another number :"))

c=int(input("Enter last number :"))

lis=[a,b,c]

sort=sorted(lis)

print("The largest number is:", sort[1])

___________________________

User Gulbrandr
by
6.1k points