Count the coins: Difference between revisions

Content added Content deleted
Line 3,851: Line 3,851:
amount := 100
amount := 100
coins := [25, 10, 5, 1]
coins := [25, 10, 5, 1]
println("amount: $amount; ways to make change: ${count_2(coins, amount)}")
println("amount: $amount; ways to make change: ${count(coins, amount)}")
}
}