var x,y:integer;
begin
readln (x);
if x > 5 then y:=3 * x + 2
else y:= 2 * x;
writeln(y)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var x,y:integer;
begin
readln (x);
if x > 5 then y:=3 * x + 2
else y:= 2 * x;
writeln(y)
end.