def find_largest(a, b, c):
return max(a, b, c)

# Input from user
num1 = float(input(“Enter first number: “))
num2 = float(input(“Enter second number: “))
num3 = float(input(“Enter third number: “))

# Find and print the largest number
largest = find_largest(num1, num2, num3)
print(“The largest number is:”, largest)


Leave a Reply

Your email address will not be published. Required fields are marked *