program evenNumbers;
varmultiplication, number: integer;
beginmultiplication := 1;number := 10; // заданное число
while multiplication <= number dobeginfor number := 1 to number dobeginif (number mod 2 = 0) thenbeginWrite(number, ' ');multiplication := multiplication * number;end;end;end;end.
program evenNumbers;
var
multiplication, number: integer;
begin
multiplication := 1;
number := 10; // заданное число
while multiplication <= number do
begin
for number := 1 to number do
begin
if (number mod 2 = 0) then
begin
Write(number, ' ');
multiplication := multiplication * number;
end;
end;
end;
end.