program raf105;
var
a,d: array[1..25] of integer;
i: integer;
begin
write('Массив A: ');
for i:=1 to 25 do
a[i]:= random(35,60);
write(a[i],' ');
end;
writeln;
write('Массив D: ');
if i<=10
then d[i]:=a[i]+i;
if i>10
then d[i]:=a[i]-i;
write(d[i],' ');
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program raf105;
var
a,d: array[1..25] of integer;
i: integer;
begin
write('Массив A: ');
for i:=1 to 25 do
begin
a[i]:= random(35,60);
write(a[i],' ');
end;
writeln;
write('Массив D: ');
for i:=1 to 25 do
begin
if i<=10
then d[i]:=a[i]+i;
if i>10
then d[i]:=a[i]-i;
write(d[i],' ');
end;
end.
PascalABC 3.4.2