Hello I am relatively new to programming and C in general.
I have left the comments next to the points I have questions to, please don't give me any solutions, as I really want to learn and understand myself, I just want to understand the points.
Moreover, I feel I am missing something here in general,
My approach generally solves the problem, however, it doesn't strictly follow the given steps. i.e. as described in *3 in my comments. Moreover, I feel I am missing something all together here, I feel I should use an Array, list, or some sort of Databank or a pointer (which all have not be introduced yet), so I could keep a count of the times an object was used and to then subtract that from the Number to give the result and return the number of coins.
Or maybe I was on the wrong track and my mind has run me in the wrong direction.
Furthermore, I have compiled and fully ran through my Programm, iterates through the value and outputs as suspected. However, is there no better or clearer way of doing this, I have seen IAR enverionment for C for example, which is embedded, there I can actually run through the whole Programm and see the values change and fully understand everything.
I will be looking forward to your input to further understand and deepen my knowledge.