program znanija;
var
i,a,b: integer;
begin
a:=-10;
for i:=1 to 21 do
b := abs(a);
writeln(a, ' ', b);
a:=a+1;
end;
end.
Program n_1;
var i:integer;
for i:=-10 to 10 do writeln(i:3, ' ', abs(i):3);
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program znanija;
var
i,a,b: integer;
begin
a:=-10;
for i:=1 to 21 do
begin
b := abs(a);
writeln(a, ' ', b);
a:=a+1;
end;
end.
Program n_1;
var i:integer;
begin
for i:=-10 to 10 do writeln(i:3, ' ', abs(i):3);
end.