program massiv ;
uses crt;
type mas=array[1..1000] of integer;
var i,n,s: integer;
m:mas;
begin writeln ('введи число') ;
readln (n);
randomize;
for i:=1 to n do
begin
m[i]:=random(45)+1;
write(m[i], ' ');
if m[i] mod 2=0 then s:=s+1; или inc(s,1)
end;
writeln;
write(s );
end.
uses crt;
type mas=array[1..1000] of integer;
var i,n,s: integer;
m:mas;
begin writeln ('введи число') ;
readln (n);
randomize;
for i:=1 to n do
begin
m[i]:=random(45)+1;
write(m[i], ' ');
if m[i] mod 2=0 then s:=s+1; или inc(s,1)
end;
writeln;
write(s );
end.