Skip to content

Instantly share code, notes, and snippets.

@MahraibFatima
Created March 19, 2024 16:08
Show Gist options
  • Save MahraibFatima/212dfc8ad7a20775fa49bb3b963afb09 to your computer and use it in GitHub Desktop.
Save MahraibFatima/212dfc8ad7a20775fa49bb3b963afb09 to your computer and use it in GitHub Desktop.
Determine and print the largest number among the three numbers entered by the user.
a = float(input("Enter the first number: "))
b = float(input("Enter the second number: "))
c = float(input("Enter the third number: "))
max_num = max(a, b, c)
print("Largest number:", max_num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment