I have a problem with
check50 and pset1. Specifically the
greedy program. In every instance my code would seem to get the right answer, however when checked with the check50 widget I get back the message ...
:( input of 4.2 yields output of 18 \ expected output, but not "18"
I don't understand what is wrong here, my print statement is ...
printf("%d", totalCoins); // prints an int
And to add insult to injury, my mark in gradebook reflects the check50 problem. What have I done incorrectly? Hints please!