Ответ:
var f: array[1..7] of integer;
i,sum:integer;
srednee:real;
begin
sum:=0;
randomize;
for i:=1 to 7 do
f[i]:=random(-5000,5000);
write(f[i], ' ');
sum:=sum+f[i];
end;
srednee:= sum/7;
writeln('Srednee: ', srednee:3:3);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
var f: array[1..7] of integer;
i,sum:integer;
srednee:real;
begin
sum:=0;
randomize;
for i:=1 to 7 do
begin
f[i]:=random(-5000,5000);
write(f[i], ' ');
sum:=sum+f[i];
end;
srednee:= sum/7;
writeln('Srednee: ', srednee:3:3);
end.