1)
program gt;
var a,i:integer;
begin
for i:=1 to 100 do
begin
writeln(i,' ',i*400);
end;
end.
2)
program gt;
var a:array[1..100,1..100]of integer;
i,j,s:integer;
begin
randomize;
for i:=1 to 5 do
for j:=1 to 5 do
a[i,j]:=random(100)-50;
s:=0;
for j:=1 to 5 do
s:=s+a[1,j];
for i:=1 to 5 do
begin
for j:=1 to 5 do
write(a[i,j],' ');
writeln;
end;
writeln;
for i:=1 to 5 do
begin
for j:=1 to 5 do
begin
if(a[i,j]<0)then a[i,j]:=s;<br>write(a[i,j],' ');
end;
writeln;
end;
end.
3)
program gt;
var a,b:array[1..15]of integer;
i,j,s:integer;
begin
randomize;
for i:=1 to 15 do
a[i]:=random(100)-50;
for i:=1 to 15 do
begin
read(j);
b[i]:=a[i]+j;
end;
for i:=1 to 15 do
write(a[i],' ');
writeln;
for i:=1 to 15 do
write(b[i],' ');
end.