https://ide.codingblocks.com/#/s/30955
https://hack.codingblocks.com/contests/c/457/258
Coin Change in hb
The code had lots of mistakes. I have corrected it but it is adviced to try it yourself again.
https://ide.codingblocks.com/#/s/31063
Here is the code for reference.
Please compile and test it for given input before putting it in discussions