Respuestas
Respuesta:
esta en python
Explicación:
print("Algoritmo que dice el numero mayor")
n1=float(input("Ingrese primer numero: "))
n2=float(input("Ingrese segundo numero: "))
n3=float(input("Ingrese tercer numero: "))
if n1<n2 and n2<n3:
print(n3)
elif n1<n2 and n2>n3 and n1<n3:
print(n2)
elif n1>n2 and n2<n3 and n1<n3:
print(n3)
elif n1<n2 and n2>n3 and n1>n3:
print(n2)
elif n1>n2 and n2>n3:
print(n1)
elif n1>n2 and n2<n3 and n1>n3:
print(n1)
Respuesta:
Esta hecho en python Uwu
Código:
#Se solicitan los numeros
numeroUno=int(input("Ingrese primer numero: "))
numeroDos=int(input("Ingrese segundo numero: "))
numeroTres=int(input("Ingrese tercer numero: "))
#Se realiza la comparacion
if(numeroUno > numeroDos) & (numeroUno > numeroTres):
numeroMayor = numeroUno
else:
if numeroDos > numeroTres:
numeroMayor = numeroDos
else:
numeroMayor = numeroTres
#Se imprime el resultado
print(f"El número mayor es: {numeroMayor}")