Var a: array [1..15] of integer; i,n:integer; begin for i:=1 to 15 do begin a[i]:=random(50); if (a[i] mod 2)=0 then n:=n+1; end; writeln(a); writeln; writeln(n); end.
Uses crt; Var a:array [1..15] of integer; i,k:integer; begin for i:=1 to 15 do begin a[i]:=random(50)-20; write (a[i]:4); k:=0; end; writeln; for i:=1 to 15 do if a[i]>0 then begin k:=k+1; end; writeln ('колво элементов',k); end.
i,n:integer;
begin
for i:=1 to 15 do begin
a[i]:=random(50);
if (a[i] mod 2)=0 then
n:=n+1;
end;
writeln(a);
writeln;
writeln(n);
end.
Var a:array [1..15] of integer;
i,k:integer;
begin
for i:=1 to 15 do
begin
a[i]:=random(50)-20;
write (a[i]:4);
k:=0;
end;
writeln;
for i:=1 to 15 do
if a[i]>0 then
begin
k:=k+1;
end;
writeln ('колво элементов',k);
end.