Решение на Python:
array = [int(x) for x in input().split()]
sum = 0
for i in array:
if i%2:
sum += i
print(sum)
print(array)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Решение на Python:
array = [int(x) for x in input().split()]
sum = 0
for i in array:
if i%2:
sum += i
print(sum)
print(array)