HeavenonfirE
01-24-2009, 08:18 PM
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int x,n,a,b;
cout<<"Enter the value of Rupees";
cin>>x;
n=x/500;
cout<<"There are "<<n<<" notes of Rs. 500"<<endl;
x=x%500;
n=x/100;
cout<<"There are "<<n<<" notes of Rs. 100"<<endl;
x=x%100;
n=x/50;
cout<<"There are "<<n<<" notes of Rs. 50"<<endl;
getch();
}
#include<conio.h>
void main()
{
clrscr();
int x,n,a,b;
cout<<"Enter the value of Rupees";
cin>>x;
n=x/500;
cout<<"There are "<<n<<" notes of Rs. 500"<<endl;
x=x%500;
n=x/100;
cout<<"There are "<<n<<" notes of Rs. 100"<<endl;
x=x%100;
n=x/50;
cout<<"There are "<<n<<" notes of Rs. 50"<<endl;
getch();
}