x = input('enter a value for x: ');
Sgnx2 = x^2;
if x < 0 ; Sgnx2 = -Sgnx2 ; end
disp(Sgnx2)

