Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emilianobilli/16a2ebd98f3a934618fd0e4ce311e441 to your computer and use it in GitHub Desktop.
Save emilianobilli/16a2ebd98f3a934618fd0e4ce311e441 to your computer and use it in GitHub Desktop.
# Ingresar 5 números reales e informar el menor de ellos.
def ingresa_numero_real():
real = input("Ingresa numero real: ")
return float(real)
contador = 1
menor = 1000000 # opcion 1 con 0, opcion 2 primer valor que se ingrese
while contador <= 5:
numero = ingresa_numero_real()
if numero < menor or contador == 1:
menor = numero
contador = contador + 1
print("El menor es: ", menor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment