#include<iostream.h>
#include<conio.h>

int main()
{
     clrscr();
     long amount, thousand, five_hundred, hundred, fifty, ten, five;

     cout<<"\n\n\t Enter a amount : ";
     cin>>amount;

     cout<<"\n\n\t DISTRIBUTION OF MONEY i.e "<<amount<<" rupees";
     cout<<"\n\t --------------------------------------";

     thousand=amount/1000;
     amount=amount-(thousand*1000);

     five_hundred=amount/500;
     amount=amount-(five_hundred*500);

     hundred=amount/100;
     amount=amount-(hundred*100);

     fifty=amount/50;
     amount=amount-(fifty*50);

     ten=amount/10;
     amount=amount-(ten*10);

     five=amount/5;
     amount=amount-(five*5);


     cout<<"\n\n\t Thousand Rupee Note      =    "<<thousand;
     cout<<"\n\n\t Five Hundred Rupee Note  =    "<<five_hundred;
     cout<<"\n\n\t Hundred Rupee Note       =    "<<hundred;
     cout<<"\n\n\t Fifty Rupee Note         =    "<<fifty;
     cout<<"\n\n\t Ten Rupee Note           =    "<<ten;
     cout<<"\n\n\t Five Rupee Note          =    "<<five;
     cout<<"\n\n\t The remaining amount     =    "<<amount<<" rupees";
     cout<<"\n\n\t --------------------------------------";


     cout<<"\n\n\t\t T H A N K  Y O U";

     getch();

     return 0;
}
1