Untitled

Anonymous
plain_text
10/22/2023 8:25 AM
364 B
22
Indexable
x = list(map(int, input().split())) #ввод нескольких переменных в одну строку
c=0
arr = [] #создание пустого списка
for i in range(len(x)):
    if x[i]%2 == 0:
        arr.append(x[i])
for f in arr:
    c+=f
print(c)
Editor is loading...