include[HTML_REMOVED]
using namespace std;
int tmp;
double n;
int main(){
scanf(“%lf”,&n);
int n1=(int)(n*100+0.5);
printf(“NOTAS:\n”);
int a[6]={10000,5000,2000,1000,500,200};
for(int i=0; i<6; i++){
tmp=n1/a[i];
n1%=a[i];
printf(“%d nota(s) de R$ %d.00\n”,tmp,a[i]/100);
}
printf(“MOEDAS:\n”);
int b[6]={100,50,25,10,5,1};
for(int i=0; i<6; i++){
tmp=n1/b[i];
n1%=b[i];
printf(“%d moeda(s) de R$ %.2lf\n”,tmp,(double)b[i]/100);
}
return 0;
}