x = abs(int(input()))
_sumChet = 0
while x > 0:
if (x % 10) % 2 == 0:
_sumChet += x % 10
x //= 10
print(_sumChet)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
x = abs(int(input()))
_sumChet = 0
while x > 0:
if (x % 10) % 2 == 0:
_sumChet += x % 10
x //= 10
print(_sumChet)