The simplest algorithm would divide 1.30 by .25, output the amount to be the quarters, divide the remainder by .10, output the remainder to be number of dimes, and so on.