5 \end {cases}" alt="F=\begin {cases} 3a^3-1, \ a<-3 \\ a^2-2a+3, -3 \leq a \leq 5\ \\ 3a^2-2, \ a>5 \end {cases}" align="absmiddle" class="latex-formula">
var
a,F:integer;
begin
Write('Введите a: '); Read(a);
if a<-3 then F:=3*a*sqr(a)-1<br> else
if a>5 then F:=3*sqr(a)-2
else F:=sqr(a)-2*a+3;
Writeln('F=',F)
end.