Ответ:
s = int(input())
m = int(input())
k = 0
while m:
if (s % 10) % 2 == 0:
k += s % 10
m -= 1
s //= 10
print(k)
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
s = int(input())
m = int(input())
k = 0
while m:
if (s % 10) % 2 == 0:
k += s % 10
m -= 1
s //= 10
print(k)
Объяснение: