Задача пять!!СРОЧНОпаскаль
function GCD(a, b: integer): integer;
begin
while b <> 0 do
a := a mod b;
Swap(a, b)
end;
result := a
var (m, n) := ReadInteger2();
var gcd_ := GCD(m, n);
var lcm_ := m * n div gcd_;
for var i := 1 to gcd_ do
Print(lcm_ * i)
end.