% computeAreaOfRect.m   P. Conrad for CISC106 06F
% interactive test of area of rectangle

% print greeting

fprintf('This program will compute the area of a rectangle\n\n');

fprintf('You will be asked for the length and the width, and\n');
fprintf('then the result will be printed\n\n');

% ask for input

len = input('Please enter a length: ');
wd = input('Please enter a width: ');

% compute result
% note that the names of the variables do NOT have to match
% those in the M-file called areaOfRect.m
% only the number and type of those variables have to match

theArea = areaOfRect(len,wd);

% print output
fprintf('The area is %d\n',theArea);


