Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Bucle simple para restrigir datos (numero entero/positivo/negativo)
- while True:
- x = int(input("Dame un numero:"))
- if (x < 0):
- break;
- print x
- print 'Has introducido un nΓΊmero negativo.'
- print 'Haz salido del bucle.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement