I am learning C right now...anyway I do try to understand it but I got a problem with the following program. It's a C program that calculates the exact change. So, since only int arithmetic is exact, I l need to break up your double into two ints, the one before the decimal point and the one after the decimal point. It gotta look like this here
Enter the sales price: 5.66
Enter the cash paid: 10.75
Here's your change: 5.09
5 dollars, 1 nickel and 4 pennies
Want to try again? [y/n] n
I have like no idea now how do do this one. Can someone help me, please? Very much appreciated!!