%%% input sum of money % % Input each amount of money. % ======================== dolar=input('sum of dolars : '); uro=input('sum of uro : '); yen=input('sum of yens : '); % % Comput the Shekel equivalent. % =========================== nis1=4.3320*dolar; nis2=4.9474*uro; nis3=3.6147*yen; % % Compute the sum. % =============== nis=nis1+nis2+nis3; % % Display the result. % ================= disp(['The sum of money equals to ' num2str(nis) ' N.I.S.']);