Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //p2
- n = input()
- s = 0
- for i in range(len(n)):
- if (int(n[i]) % 2 == 0):
- s = s + int(n[i]);
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement