0
Denomination
How do I find the denomination of a number in dollars and cents in C?
1 Respuesta
0
Not sure if I understood your question correctly but here's the code:
https://code.sololearn.com/cfjy2s8Mh6yp/#c
I assumed that you wanted to get the dollars and cents in integer form from a double variable (money). I did this through typecasting that variable.
Please note that my program only takes into consideration numbers which have no more than two digits right of the decimal point.