Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.66K
1 Posted Topic
[code]#include<stdio.h> #include<conio.h> void main() { clrscr(); int a,b,d,e,f,g,h,i,j,k,l,change; printf("Enter the money:"); scanf("%d",&a); printf("\nEnter the price:"); scanf("%d",&b); change=a-b; printf("\nChange= %d",change); if(change>=1000) { d=change/1000; printf("\nThousand= %d",d); } if(change>=500) { e=(change%1000/500); printf("\n5 hundred= %d",e); } if(change>=200) { f=(change%500/200); printf("\n2 hundred= %d",f); } if(change>=100) { g=(change%200/100); printf("\nhundred= %d",g); } if(change>=50) { h=(change%100/50); printf("\nfifty= %d",h); …
The End.
al john