1) Program l1;
Var a:integer;
Begin
For a:= 1 to 10 do Writeln(a, ' ', a*a,' ',a*a*a);
end.
2) Program l2;
Var a,b: integer;
For a:= -10 to 10 do
begin
b:=Abs(a);
Writeln(a, ' ' ,b);
end;
Я не проверял работает ли , но по идее должно
===== PascalABC.NET =====
=1=
for var a := 1 to 10 do
Println(a, a * a, a * a * a)
=2=
for var a := -10 to 10 do
Println(a, Abs(a))
1) Program l1;
Var a:integer;
Begin
For a:= 1 to 10 do Writeln(a, ' ', a*a,' ',a*a*a);
end.
2) Program l2;
Var a,b: integer;
Begin
For a:= -10 to 10 do
begin
b:=Abs(a);
Writeln(a, ' ' ,b);
end;
end.
Я не проверял работает ли , но по идее должно
===== PascalABC.NET =====
=1=
begin
for var a := 1 to 10 do
Println(a, a * a, a * a * a)
end.
=2=
begin
for var a := -10 to 10 do
Println(a, Abs(a))
end.