% letterGrade.m    P. Conrad for CISC106, 09/25/2006
% illustrate how to use an if/elseif/else

% Ask user to input a grade, 
% Then, print whether the grade is an A, B, C, D or F

grade = input('Enter a grade: ');

if (grade >= 90 )
     display('A');
elseif (grade >= 80)
     display('B');
elseif (grade >= 70)
     display('C');
elseif (grade >= 60)
     display('D');
else
     display('F');
end

