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

% ask user to input a grade, 
% then print whether the grade is a passing or failing grade

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

if (grade >= 60)
     display('Passed');
else
     display('Failed');
end
