This is my output now
cost = 12.88;
printf("Cost: %.0lf dollars and %.2lf cents", cost, cost-floor(cost));
//output
12 dollars and 0.88 cents
I need my output to look something like this
cost = 12.88
printf("%d Dollars and %d cents", cost)
output
12 dollars and 88 cents