Ответ:
n = list(map(int, input()))
summ = 0
for i in n:
if i % 2 == 0:
summ += i
print(summ)
a = input()k = 0for i in a: if int(i) % 2 == 0: k += int(i)print(k)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
n = list(map(int, input()))
summ = 0
for i in n:
if i % 2 == 0:
summ += i
print(summ)
a = input()
k = 0
for i in a:
if int(i) % 2 == 0:
k += int(i)
print(k)