Program HOC24;
var d,i,n: integer;
a: array[1..1000] of integer;
begin
write('Nhap N: '); readln(n);
for i:=1 to n do
begin
write('Nhap so thu ',i,': '); readln(a[i]);
end;
d:=0;
for i:=1 to n do if a[i] mod 2=0 then d:=d+1;
write('Co ',d,' so chan trong day');
readln
end.
Đúng 2
Bình luận (0)