program answer;
uses CRT;
Var
a: array [1..30] of integer;
i: integer; n:integer;
begin
clrscr;
for i:=1 to 30 do begin
a[i]:= random(100);
writeln (a[i]);
end;
Writeln ('chetnie chisla s massiva: ');
for i:=1 to 30 do
if ((a[i]) mod 2 = 0) then writeln (a[i])
end.
// PascalABC.NET
var a := ArrRandom(30, -99, 99);
a.Println.Count(p -> p.IsOdd).Print
program answer;
uses CRT;
Var
a: array [1..30] of integer;
i: integer; n:integer;
begin
clrscr;
for i:=1 to 30 do begin
a[i]:= random(100);
writeln (a[i]);
end;
Writeln ('chetnie chisla s massiva: ');
for i:=1 to 30 do
begin
if ((a[i]) mod 2 = 0) then writeln (a[i])
end;
end.
// PascalABC.NET
begin
var a := ArrRandom(30, -99, 99);
a.Println.Count(p -> p.IsOdd).Print
end.