var
a:array [1..10] of integer;
i:integer;
begin
randomize;
for i:=1 to 10 do begin
a[i]:=random(20)+1;
write (a[i],' ');
end;
writeln;
for i:=1 to 10 do
if odd(a[i])=true then write (a[i],' ');
readln;
end.
Var
n, cnt, sum, i, t: integer;
begin
read(n);
cnt := 0;
sum := 0;
for i := 1 to n do
begin
read(t);
if t > 0 then
begin
inc(cnt);
sum := sum + t;
end;
end;
writeln(sum / cnt : 0 : 1);
write(cnt);
end.
uses
GraphABC;
var
s: string; <em>//Вся строка</em>
i: byte; <em>//Номер нужного слова</em>
begin
readln(s);
readln(i);
s := s.Split(' ')[0] + ' ' + s.Split(' ')[i - 1];
SetBrushColor(clBlue);
FillRectangle(0, 0, WindowWidth, WindowHeight);
GraphABC.SetFontSize(12);
TextOut(WindowWidth - s.Length * 12, 0, s);
end.