C++ 代码
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int chao[7] ={100,50,20,10,5,2,1};
cout<<n<<endl;
for(int i=0;i<7;i++){
printf("%d nota(s) de R$ %d,00\n",n/chao[i],chao[i]);
n = n%chao[i];
}
return 0;
}