Code
#include<stdio.h>int main()
{
float t,t1,t2,t3;
int m1,m2,m3;
printf("\nInput notes in hundreds");
scanf("%f",&t);
t3=t/100;
m3=t3;
t2=(t-m3*100.0)/50;
m2=t2;
t1=(t-(m3*100.0+m2*50.0))/10;
m1=t1;
printf("\n\nThe no of 100 notes is %d\nThe no of 50 notes is %d\nThe no of 10 notes is %d",m3,m2,m1);
printf ("\n\nPress any key to close.");
getch ();
return 0;
}
logic program
ReplyDelete