int total;
scanf(“%d”,&total);
int n = total;
int t1,t2,t3,t4,t5,t6,t7;
t1 = total/100;
t2 = (total%=100)/50;
t3 = (total%=50)/20;
t4 = (total%=20)/10;
t5 = (total%=10)/5;
t6 = (total%=5)/2;
t7 = (total%=2)/1;
printf(“%d\n”,n);
printf(“%d nota(s) de R$ 100,00\n”,t1);
printf(“%d nota(s) de R$ 50,00\n”,t2);
printf(“%d nota(s) de R$ 20,00\n”,t3);
printf(“%d nota(s) de R$ 10,00\n”,t4);
printf(“%d nota(s) de R$ 5,00\n”,t5);
printf(“%d nota(s) de R$ 2,00\n”,t6);
printf(“%d nota(s) de R$ 1,00\n”,t7);
注意N,和total,另外需要更改(total%=)