Ответ:
program z1;
const n =10;
var a,b,c:array[1..n]of integer;
i:integer;
begin
write('Массив A: ');
for i:= 1 to n do
a[i]:= random(9)-5;
write(a[i]:3)
end;
writeln;
write('Массив B: ');
b[i]:= random(9)-5;
write(b[i]:3)
write('Массив C: ');
c[i]:=a[i]+b[i];
write(c[i]:3)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
program z1;
const n =10;
var a,b,c:array[1..n]of integer;
i:integer;
begin
write('Массив A: ');
for i:= 1 to n do
begin
a[i]:= random(9)-5;
write(a[i]:3)
end;
writeln;
write('Массив B: ');
for i:= 1 to n do
begin
b[i]:= random(9)-5;
write(b[i]:3)
end;
writeln;
write('Массив C: ');
for i:= 1 to n do
begin
c[i]:=a[i]+b[i];
write(c[i]:3)
end;
end.