Ответ:
import random
n = 10
list = []
list_odd = []
print("Массив: ", end='')
for i in range(0, n):
list.append(random.randint(-10, 10))
print(list[i], end=' ')
if list[i] % 2 == 0:
list_odd.append(list[i])
if list_odd:
print("\nMax", max(list_odd))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
import random
n = 10
list = []
list_odd = []
print("Массив: ", end='')
for i in range(0, n):
list.append(random.randint(-10, 10))
print(list[i], end=' ')
if list[i] % 2 == 0:
list_odd.append(list[i])
if list_odd:
print("\nMax", max(list_odd))