Hello,
Lets assume we have the amount 110,11 euro.
The used money bills are 500, 200, 100, 50, 20 10, 5, 2 , 1, 0.50, 0.20, 0.10, 0.05, 0.01.
So this amount would give on the console screen 1 x 100 1 x 10 1 x 0.10 1 x 0.01
How exactly can i split a random amount apart into its required bill / coins ? (without using a table/array)
Tried a switch with cases but it did not get me far.
Regards.