2 câu trả lời
program kiemtra;
uses crt;
var N,i:integer;
T:longint;
begin clrscr;
write('Nhap so N: '); readln(N);
T:=0;
for i:=1 to N do
If N mod 2<>0 then T:=T*1;
write('Tich la: ',S);
readln;
end.
Học tốt!
uses crt;
var i,n,p:integer;
a:array[1..1000] of integer;
begin
clrscr;
write('n=');readln(n);
for i:=1 to n do
begin
write('a[',i,']=');readln(a[i]);
end;
begin
p:=a[i];
for i:=1 to n do
if a[i] mod 2 <> 0 then
p:=p*a[i];
end;
writeln('p=',p);
readln;
end.