0

How many different ways can 200 be made using any number of coins? The possible nominals are 1, 2, 5, 10, 20, 50, 100, 200
-module(coins).
-export([coins/2]).
coins(_, 0) -> 1;
coins([], _) -> 0;
coins(_, Goal) when Goal < 0 -> 0;
coins([H|T], Goal) ->
coins([H|T], Goal-H) + coins(T, Goal).
...