clc
clear all
disp('EXERCISE 2 - CHAPTER 19')
disp('ABSTRACT')
disp('  Determine if a number is an integer or a decimal')
disp(' ')
% Exercise 2 - Chapter 19
% determine if an input number is an integer or a decimal
% INPUTS
disp('INPUTS')
% number to check, innum
innum=13.5
% CODE/OUTPUTS
disp(' ')
disp('OUTPUTS')

% method  - using two if-end statements 
if ceil(innum)==innum
    disp('  This number is an integer')
end
if ceil(innum)~=innum
    disp('  This number is a decimal')
end
