Splitting number and grabbing
<p>If I have:</p>

<pre><code>int money;
money = 378;
</code></pre>

<p>Now I would like to say how many banknotes and coins get out from this..</p>

<p>Sweden has these banknotes: 500, 100, 50, 20 and the coins 10, 5, 1</p>

<p>So the output i wish to get from the above <code>money</code> value:</p>

<p>3x100 , 1x50 , 1x20, 1x5, 3x1</p>

<p>How can I do this?</p>
