Advertisement
GastonPalazzo

Bucles_1 - Ej-7

Aug 31st, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #main
  2. print('\n|Ej 7|')
  3.  
  4. numeros=[]
  5.  
  6. while True:
  7.     var=int(input('\nIngrese un numero: '))
  8.     if var==0:
  9.         break
  10.     numeros.append(var)
  11.  
  12. print(f'\nNumeros ingresados -> {numeros}')
  13.  
  14. numeros.sort()
  15.  
  16. print(f'\nNumeros ingresados y ordenados de forma creciente -> {numeros}')
  17.  
  18. print('\nFin de la ejecucion!\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement