import random
array = []
chet = 0
for i in range(11):
a = random.randint(20, 50)
array.append(a)
if a % 2 == 0:
chet += 1
print(array)
print("Чётных: ", chet)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import random
array = []
chet = 0
for i in range(11):
a = random.randint(20, 50)
array.append(a)
if a % 2 == 0:
chet += 1
print(array)
print("Чётных: ", chet)