Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int N,not100,not50,not20,not10,not5,not2,not1;
- scanf("%d",&N);
- printf("%d\n",N);
- not100 = N /100;
- not50 = (N%100)/50;
- not20 = (N%50)/20;
- not10 = (N%20)/10;
- not5 = (N%10)/5;
- not2 = (N%5)/2;
- not1 = (N%2)/1;
- printf("%d nota(s) de R$ 100,00\n",not100);
- printf("%d nota(s) de R$ 50,00\n",not50);
- printf("%d nota(s) de R$ 20,00\n",not20);
- printf("%d nota(s) de R$ 10,00\n",not10);
- printf("%d nota(s) de R$ 5,00\n",not5);
- printf("%d nota(s) de R$ 2,00\n",not2);
- printf("%d nota(s) de R$ 1,00\n",not1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement