asked 37.1k views
5 votes
Write a program that takes two decimal numbers as input and print the largest. If the numbers are equal, print one of them.

asked
User Kkurni
by
7.7k points

1 Answer

2 votes

print(max(float(input("Enter a decimal number: ")),float(input("Enter a decimal number: "))))

This would be the simplest way to do it. Best of luck.

No related questions found