function [a,b,c,d] = MoneyExchange(m) //== a = 100-baht banknote //== b = 20-baht banknote //== c = 10-baht coin //== d = 1-baht coin temp = floor(m/100); if temp>0 then a = temp; m = m - 100*a; else a = 0; end temp = floor(m/20); if temp>0 then b = temp; m = m - 20*b; else b = 0; end temp = floor(m/10); if temp>0 then c = temp; m = m - 10*c; else c = 0; end d = m;