function [ payment ] = studentloan3( salary )
%This function computed the payment amount of a student loan from the
%salary.
a=floor((salary-21000)*(9/100)*(1/12));
if a>0
payment=a; 
else
payment=0;
end
%The payment is computed 
%from the salary using the formula for student loans.
%Here floor rounds to the nearest integer not exceeding its argument.
%If payment would be negative it is set to zero.
end
