Instructiunea If
Pascal
Ajutati sa rezolv problema

if( x <= -2 ) then f := -2;
if( x > -2 and x < 2 ) then f := x;
if( x >= 2 ) then f := 2;