% This program transform a grade average 
% into a letter grade

% Example using "break" or stop command inside a conditional
N=input('Grade=');

if N>=90 
   fprintf('Grade obtained= %3.0f\n',N);
   disp('Letter Grade A');
end

if N>=85 & N<90, ...
   fprintf('Grade obtained= %3.0f\n',N);
	disp('Letter Grade A-'); break
end

if N>=50 & N<55, ...
   fprintf('Grade obtained= %3.0f\n',N);
   disp('Letter Grade D');
else 
   fprintf('Grade obtained= %3.0f\n',N);
   disp('Letter Grade E or unknown');


end

% Exercise: input a number >=90 and another btw 85 and 90. Explain 
% the function of "break".

