Advertisement
Guest User

Lagrotteria_Ejercicio7

a guest
Mar 30th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. Ejercicio 7
  2.  
  3. print('Pedir una numero del 0 al 9999')
  4. n= int (input())
  5. if n<10:
  6.    print('Tiene una cifra')
  7. elif n<100:
  8.     print('Tiene dos cifras')
  9. elif n<1000:
  10.     print('Tiene tres cifras')
  11. elif n<10000:
  12.     print('Tiene cuatro cifras')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement