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 
% using the if-else-end statement
if (a>=0)
    disp('The number is nonnegative')
else
    disp('The number is negative')
end
