Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 Online
OpenStudy (anonymous):

How to use modulus in C program Anyone to help me figure how out how to write a code to calculate number of coins i.e quarters, dimes, pennies.

OpenStudy (anonymous):

What approach do you have in mind?

OpenStudy (anonymous):

ask for user input // calculate the number of quarters(25 cents) // on the remainder calculate the number of dimes(10 cents) //on the remainder calculate the number of pennies // calculate the total number of coins used.

OpenStudy (rsmith6559):

remainder = input % quarter; quarters = input / quarter;

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!