program to find total no. of currency notes(100,50,10) of the enterd value


LIST OF PROGRAMS





eg:


Enter a amount = 560
No. of Rs.100 notes  = 5
No. of Rs.50 notes  = 1
No. of Rs.10 notes  = 1


#include<stdio.h>
#include<conio.h>
void main()
{
long int n,x=0;
 clrscr();
printf("Enter a amount = \n");
scanf("%ld",&n);
x=n/100;
printf("No. of Rs.100 notes  = %ld\n",x);
n=n%100;
x=n/50;
printf("No. of Rs.50 notes  = %ld\n",x);
n=n%50;
x=n/10;
printf("No. of Rs.10 notes  = %ld\n",x);
getch();
}

LIST OF PROGRAMS


Comments