program raf105;
var x,y: real;
begin
write('x = ');
readln(x);
if x >= 1
then y:= power(x,2);
if x < 1
then y:= 1-x;
writeln('y = ',y);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program raf105;
var x,y: real;
begin
write('x = ');
readln(x);
if x >= 1
then y:= power(x,2);
if x < 1
then y:= 1-x;
writeln('y = ',y);
end.
PascalABC 3.4.2