Ответ:
var x, result: integer;
begin
readln(x);
if (x > 0) then
result := sqr(x)*x
else if (x < 0) then
result := abs(x)
else if (x = 0) then
result := x + 10;
writeln(result);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
var x, result: integer;
begin
readln(x);
if (x > 0) then
result := sqr(x)*x
else if (x < 0) then
result := abs(x)
else if (x = 0) then
result := x + 10;
writeln(result);
end.