uses crt;
var n,i:integer;
begin
clrscr;
repeat
write('Nhap n='); readln(n);
until n>0;
write('Cac so chan trong khoang tu 1 toi ',n,' la: ');
for i:=1 to n do
if i mod 2=0 then write(i:4);
readln;
end.
program so_tu_nhien_chan;
uses crt;
var n,i:integer;
begin
clrscr;
write('Nhap n='); readln(n);
write('Cac so chan nho hon hoac bang ',n,' la: ');
for i:=2 to n do
if i mod 2=0 then write(i:4,' ;');
readln;
end.