Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #main
- print('\n|Ej 7|')
- numeros=[]
- while True:
- var=int(input('\nIngrese un numero: '))
- if var==0:
- break
- numeros.append(var)
- print(f'\nNumeros ingresados -> {numeros}')
- numeros.sort()
- print(f'\nNumeros ingresados y ordenados de forma creciente -> {numeros}')
- print('\nFin de la ejecucion!\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement