I normally wouldn't do this but since you did attempt to do something and is completely wrong here is a partial code that you can finish. It will compile and run but doesn't do dimes, nickels, or pennies. And it is apparent you are in the beginning of your learning to code, but that is still no excuse. So take what I have done and finish the code and repost so we can see you are on the right track. I don't want you to get frustrated and quit because the more people we can get coding in this world the better.
To everyone else I'm sure you might get upset with me for posting this much code, but this is a simple problem that by helping him now he might become a better coder later.
Thank you for this. I owe my life to you. :) Ill promise I will be a better programmer.
About this code,well, I needed to change it to some turbo C "stuffs". But its fine, I'll handle it. Thank you again. Thank you so much.