Your
printf
statement shows the values that were passed to the function, so the easiest - and probably best - way is to leave that function alone, and look at where you call it.
Somewhere, you will have code that looks something like this:
dispence_change(1, 73);
Though the actual values passed are likely to be different and probably be variables rather than constants.
If you duplicate the line that calls the function, it will be executed twice, and will print two rows. If each call passes different values, the line should show different results.
Perhaps start with a loop:
for (int price = 0; price < 100; price++)
{
dispense_change(1, price);
}
And see what happens?