Предмет:
ИнформатикаАвтор:
аноним( Решение данной задачи предоставлено на языке программирования Python 3.6.4 ).
Заведем пустой массив, который будет последовательно заполняться введёнными с клавиатуры значениями, в количестве 15.
После чего с помощью цикла for будем перебирать все элементы массива и, благодаря условию if, находить среди них чётные. Переменная k - произведение всех четных элементов.
n = 15a = []for i in range(0, n): b = int(input()) a.append(b)k = 1for i in range(0, n): if a[i] % 2 == 0 : k *= a[i]print(k)Автор:
tristindeckerДобавить свой ответ
1. Раскройте скобки, употребите глагол в соответствующей форме страдательного залога.
1. The place for the capital (choose) by the first president, George Washington, and in 1800 the Government moved there.
2. The White House is the official residence of the President of the United States. It (build) in 1799.
3. The White House is the place where official receptions (hold) and the administration gathers for the meetings.
4. The comer stone of the Congress (lay)by George Washington in 1790.
5.The Lincoln Memorial (devote) to the memory of the sixteenth President of the USA, the author of the Emancipation Proclamation, which gave freedom to Negro slaves in America.
Предмет:
Английский языкАвтор:
ЛикаbogdanovaОтветов:
Смотреть
Предмет:
ИнформатикаАвтор:
анонимОтветов:
Смотреть
Предмет:
Другие предметыАвтор:
анонимОтветов:
Смотреть