Advertisement
UraniumGames

Task4

Dec 10th, 2023
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. x=int(input())
  2. a=x//10000
  3. b=x//1000%10
  4. c=x//100%10
  5. d=x//10%10
  6. e=x%10
  7. print(a,c,b,d,e,sep='')
  8. print(a+b+c+d+e)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement