Determine the number of quarters


Discuss the below:

Q: Create a C function named change() that accepts a floating point number and the addresses of the integer variables named quarters, dimes, nickels, and pennies. The function should determine the number of quarters, dimes, nickels, and pennies in the number passed to it and write these values directly into respective variables declared in its calling function.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Determine the number of quarters
Reference No:- TGS01939522

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)