1)
var
a:array[1..100]of real;
n,p,q,q1:real;
i:integer;
begin
for i:=1 to 100 do
begin
read(a[i]);
if a[i]>=0 then
begin
p:=p+a[i];
q:=q+1;
end;
if a[i]<0 then<br> begin
n:=n+a[i];
q1:=q1+1;
end;
end;
writeln('positive:',p/q);
writeln('negative:',n/q1);
end.
2)
uses crt;
var
n:real;
i:integer;
begin
n:=0.5;
write(' Pounds',' Kg');
writeln;
for i:=1 to 20 do
begin
write (' ',n,' ', n*0.4);
n:=n+0.5;
writeln;
end;
end.
3)
uses crt;
var
x:integer;
begin
write(' x',' y');
writeln;
for x:=-5 to 5 do
begin
write(x,' ');
write(5*(x*x)-(2*x)+1);
writeln;
end;
end.