clc
clear all
disp('Inputs')
% Inputs
% check if a is nonneg or neg
a=4;
fprintf('The input number to be tested is %g\n',a)
% code/outputs
% Method 1
% using the if-end statement
if (a>=0)
    disp('The number is nonnegative')
end
if (a < 0)
    disp('The number is negative')
end
