Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C code by delievering exact change for an amount asked!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I wanted a c code where it gives u exact change in terms of dimes and quarters and dollars.(No penny or nickel available).
It shud not allow the user to input an amount which is not divisible by 5.
eg: Supposing I had asked for $11.80
It shud give me dollar=11, quarter=2,dime=3.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top