36
program raf105;
var
x,y: real;
begin
write('x = ');
readln(x);
if x <= 0
then y:= 0;
if (0 < x) and (x <= 1)
then y:= x;
if x > 1
then y:= power(x,2);
writeln('y = ',y:3:0);
end.
36
Код программы:program raf105;
var
x,y: real;
begin
write('x = ');
readln(x);
if x <= 0
then y:= 0;
if (0 < x) and (x <= 1)
then y:= x;
if x > 1
then y:= power(x,2);
writeln('y = ',y:3:0);
end.
PascalABC 3.4.2