program So_le;
uses crt;
Var i,n,m:integer;
Begin
clrscr;
writeln('Nhap so m');readln(m);
writeln('Nhap so n lon hon m');readln(n);
for i:= m to n do If i mod 3=0 and i mod 2=1 then writeln('So le chia het cho 3 la: ',i);
readln
end.
var m,n,i:integer;
begin
write('m=');readln(m);
write('n=');readln(n);
if m>n then repeat
write(' Nhap lai m: ');readln(m);
write(' Nhap lai n: ');readln(n);
until m<n;
for i:=m to n do
if (i mod 2=1) and (i mod 3=0) then write(i,' ');
readln;
end.
program tsl;
uses crt;
Var n,m,i:integer;
Begin
clrscr;
writeln('Nhap so be');readln(m);
writeln('Nhap so lon ');readln(n);
for i:= m to n do
If (i mod 3=0) and (i mod 2<>0) then
writeln('So le chia het cho 3 la: ',i);
readln
end.