Advertisement
LucasCiappa97

Ciapparelli_Ejercicio8

Mar 30th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. print('ingrese un numero de 4 cifras')
  2. c= int (input())
  3. n4 = c % 10
  4. n3 = int((c % 100) / 10)
  5. n2 = int((c % 1000) / 100)
  6. n1 = int((c % 10000) / 1000)
  7. print(str(n4)+str(n3)+str(n2)+str(n1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement