1) var n,i:integer;beginfor i:=1 to 500 do if (i mod 3=0) and (i mod 10=4) then writeln (i); readln;end.
2)
var a,b:integer;beginreadln (a,b);while (a<>0) and (b<>0) doif a>b then a:=a mod belse b:=b mod a;writeln (a+b);readln;end.
1) var n,i:integer;
begin
for i:=1 to 500 do
if (i mod 3=0) and (i mod 10=4) then
writeln (i);
readln;
end.
2)
var a,b:integer;
begin
readln (a,b);
while (a<>0) and (b<>0) do
if a>b then a:=a mod b
else b:=b mod a;
writeln (a+b);
readln;
end.