Код:
arr = []
for i in range(10):
arr.append(int(input()))
sum = 0
counter = 0
for i in arr:
if i % 2 == 0:
sum += i
counter += 1
print("Среднее:", sum / counter)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Код:
arr = []
for i in range(10):
arr.append(int(input()))
sum = 0
counter = 0
for i in arr:
if i % 2 == 0:
sum += i
counter += 1
print("Среднее:", sum / counter)