so im just new here and i really need the help now.
This is a problem from a book, and im really having a hard time doing it.
So here's the problem. I need to write a function that receives a floating point number representing the change from a purchase. The function will pass back the break down in dollar bills,half dollar, quarters,dimes, nickels and, pennies.
But here in the Philippines we only have 10 peso coin, 5 peso coin, 1 peso coin, 25 cents, 10 cents, and 5 cents. I only manage to do the break down of the 10 5 and 1 and i stuck cause i get get the 25 10 and 5 cents.
printf("your change is \n %d ten peso, %d five peso and, %d one peso \n", ten_peso(change),five_peso(change), one_peso(change));
printf("%.2f twenty five cents", twentyfive_cents(change));