Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def app():
- mayor = 0
- menor = 999
- valores = []
- print("De 10 numeros, sacar el mayor y el menor")
- for i in range(5):
- valor = int(input("Ingrese un numero: "))
- valores.append(valor)
- for j in range(5):
- if valores[j] >= mayor:
- mayor = valores[j]
- if valores[j] <= menor:
- menor = valores[j]
- print("El numero mayor es ", mayor)
- print("El numero menor es ", menor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement