Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('ingrese un numero de 4 cifras')
- c= int (input())
- n4 = c % 10
- n3 = int((c % 100) / 10)
- n2 = int((c % 1000) / 100)
- n1 = int((c % 10000) / 1000)
- print(str(n4)+str(n3)+str(n2)+str(n1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement