Advertisement
diegokr

Ejercicio 1

Nov 13th, 2019
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. # *******************************************
  2. # Segundo Parcial Práctico - Ejercicio 1
  3. # Fecha: 5/11/19
  4. # Autor: Lic. Diego Krauthamer
  5. #
  6. # *******************************************
  7.  
  8. #Declaración de variables
  9. nro=0
  10. ciclo=1
  11.  
  12. #Cuerpo principal del programa
  13. while ciclo <=5:
  14.     #Ingreso de 5 numeros enteros
  15.     print("Ingrese un número entero:")
  16.     nro=int(input())
  17.  
  18.     #Muestro el doble de cada numero
  19.     print("Doble:",2*nro)
  20.  
  21.     #Incremento el contador
  22.     ciclo=ciclo +1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement