write a programe that read amount of money ranging from rm0.10 up to rm5.00(multiple of 10cents). Display number of coins that can be used tp form the above amount.

eg. input=rm1.40 , output: 50cents=2, 20cents=2, 10cents=0

Recommended Answers

okay, what's your question about the problem

Jump to Post

All 2 Replies

okay, what's your question about the problem

cin>> int variable;
now your turn

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.