var
a : array[1..10] of integer;
s, i : integer;
begin
randomize;
for i := 1 to 10 do
a[i] := random(30)+7;
write(a[i],' ');
s:= s + a[i];
end;
writeln();
writeln('SR = ',s/10:5:2);
end.
## ArrRandom(10, 7, 36).Println.Average.Print
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
a : array[1..10] of integer;
s, i : integer;
begin
randomize;
for i := 1 to 10 do
begin
a[i] := random(30)+7;
write(a[i],' ');
s:= s + a[i];
end;
writeln();
writeln('SR = ',s/10:5:2);
end.
## ArrRandom(10, 7, 36).Println.Average.Print