var a:array [1..10] of Integer;
i:Integer;
begin
write ('Массив ');
for i:=1 to 10 do
a[i]:=random(51);
write (a[i]:3)
end;
writeln;
a[i]:=a[i]+5;
end
end.
===== PascalABC.NET =====
var a := ArrRandom(10, -90, 90);
a.Println;
a.Transform(p -> p + 5);
a.Println
var a:array [1..10] of Integer;
i:Integer;
begin
write ('Массив ');
for i:=1 to 10 do
begin
a[i]:=random(51);
write (a[i]:3)
end;
writeln;
write ('Массив ');
for i:=1 to 10 do
begin
a[i]:=a[i]+5;
write (a[i]:3)
end
end.
===== PascalABC.NET =====
begin
var a := ArrRandom(10, -90, 90);
a.Println;
a.Transform(p -> p + 5);
a.Println
end.