===== PascaslABC.NET =====
begin
var x := ReadReal;
var k := Sin(x) < 0 ? x * x : Abs(x);
var f := k < x ? k * x : k + x;
Print('f(x) =', f}
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
===== PascaslABC.NET =====
begin
var x := ReadReal;
var k := Sin(x) < 0 ? x * x : Abs(x);
var f := k < x ? k * x : k + x;
Print('f(x) =', f}
end.