Advertisement
Guest User

Sum of even digits

a guest
Sep 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. a = int(input()) // 10
  2. s = 0
  3. while a >= 10:
  4.     s += a % 10
  5.     a //= 100
  6. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement