B1:
uses crt;
var n,i:longint;
begin
write('nhap n= ');readln(n);
for i:=1 to n do n:=n*1;
write('n!= ',n);
readln
end.
Lời giải :
Bài 2 :
program hotrotinhoc ;
var a : array[1..32000] of integer ;
i,n : integer ;
begin
write('Nhap do dai cua mang :'); readln(n);
writeln('Nhap gia tri cua cac phan tu');
for i:= 1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
for i:= 1 to n do
if a[i] mod 2 <> 1 then write(a[i],' ');
readln
end.