Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #8. Pedir un número entre 0 y 9.999 y mostrarlo con las cifras al revés.
- A=int(input('un numero entre 0 y 9.999 de cuatro cifras '))
- C4=A%10
- C3=int((A%100)/10)
- C2=int((A%1000)/100)
- C1=int((A-(A%1000))/1000)
- print('Se muestra '+str(C4)+str(C3)+str(C2)+str(C1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement