Created
June 5, 2024 00:33
-
-
Save emilianobilli/16a2ebd98f3a934618fd0e4ce311e441 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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