import random numbers = [] for i in range(10): numbers.append(random.randint(1, 100)) print("Сгенерированные числа:", numbers) total = 0 count_even = 0 for number in numbers: total += number if number % 2 == 0: count_even += 1 average = total / 10 print("Среднее арифметическое чисел:", average) print("Количество четных чисел:", count_even)
numbers = []
for i in range(10):
numbers.append(random.randint(1, 100))
print("Сгенерированные числа:", numbers)
total = 0
count_even = 0
for number in numbers:
total += number
if number % 2 == 0:
count_even += 1
average = total / 10
print("Среднее арифметическое чисел:", average)
print("Количество четных чисел:", count_even)