def f():
new_list = list(map(int, input('Введите числа через пробел: ').split(' ')))
return [x for x in new_list if not (x < 0 and x % 2 == 0)]
print(f())
Информация, память, носитель,кодировка, алгоритм
Program programma;
uses crt;
var
a:array[1..100]of integer;
i,max,p:integer;
begin
clrscr;
p:=1;
for i:=1 to 9 do
begin
write('a[',i,'] = ');
readln(a[i]);
end;
for i:=1 to 9 do
begin
if a[i]> max then max:=a[i];
end;
for i:=1 to 9 do
begin
if a[i]<> max then
p:=p* a[i]
end;
writeln;
writeln('max = ', max);
write('P = ',p);
end.
1. x=5
<span>y=7 </span>
<span>t=x=5 </span>
<span>2. x=y mod x - остаток от деления - x=7 mod 5 = 2 </span>
<span>y=t=5 </span>
<span>X=2; </span>
<span>Y=5;</span>