Respuesta :

Answer:

In Python:

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

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

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

if n1 >= n2 and n1 >= n3:

   print("Largest: "+str(n1))

elif n2 >= n1 and n2 >= n3:

   print("Largest: "+str(n2))

else:

   print("Largest: "+str(n3))

Explanation:

The next three lines get three numbers from the user

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

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

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

This checks if the first number is greater than the other two. If yes, the first number is printed as the largest

if n1 >= n2 and n1 >= n3:

   print("Largest: "+str(n1))

This checks if the second number is greater than the other two. If yes, the second number is printed as the largest

elif n2 >= n1 and n2 >= n3:

   print("Largest: "+str(n2))

This prints the third number as the largest, if the other two conditions fail

else:

   print("Largest: "+str(n3))

Answer:

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

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

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

print("Largest: "+ str(max(x,y,z)))

Explanation:

Got it right and I hope this helps :)