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')
% I will show the solution using two methods - You pick which you prefer
% method  - using the if-else-end
if ceil(innum)==innum
    disp('  This number is an integer')
else
    disp('  This number is a decimal')
end
