Develop an algorithm in C# to give exact change for a Purchase ?

Posted by Nav234 under C# on 9/22/2010 | Points: 10 | Views : 1769 | Status : [Member] | Replies : 1
Hi all,

Develop an algorithm in C# to give exact change for a Purchase.
The Input is the Change in Rupees.
The Output is the number of Coins & Notes.
Assume that the Coins are Re.1,Rs.2.
The Notes are 5,10,20,50,100,500,1000.Which are our indian rupees notes.

Please help on this issue

Thanks in advance

S.Naveen...


Responses

Posted by: T.saravanan on: 9/23/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Nav234,

What's your issue? where will you struck in your code?
Give your code and then ask which line you got an problem?

In my suggestion don't ask full code, first try it yourself and then ask your doubts from your code.

Cheers :)

Thanks,
T.Saravanan

Nav234, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response