Program HOC24;
var i,n: integer;
a: array[1..1000] of integer;
begin
write('Nhap n: '); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
for i:=1 to n do if a[i]>5 then write(a[i],' ');
readln
end.
Đúng 3
Bình luận (0)