Hot answers tagged

2

You gotta change your directory to where cash.c is located. cd pset1


2

Try printing out the value of cents after each calculation and think about the effect of integer division vs. regular division. Does the code track BOTH the number of coins for each denomination AND the change left over? Also, why is coins initialized to 1 and not 0?


Only top voted, non community-wiki answers of a minimum length are eligible