Advertisement
T-D-K

Untitled

Apr 26th, 2018
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. //p2
  2. n = input()
  3. s = 0
  4. for i in range(len(n)):
  5.     if (int(n[i]) % 2 == 0):
  6.         s = s + int(n[i]);
  7. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement