``
include [HTML_REMOVED]
include [HTML_REMOVED] //cout 控制小数保留所需头文件
using namespace std;
int main()
{
int N; //金钱总额 ,0<N<1000000
float Value[7] = { 100, 50, 20, 10, 5, 2, 1 }; //钱的面额
int Count[7] = { 0 }; //每种面额的钞票所需数量
cin >> N; //输入钞票总额
for (int i = 0; i < 7; i++) {
float a = Value[i];
Count[i] = N / a;
N = N - a * Count[i];
cout << Count[i] << " nota(s) de R$ "<<setiosflags(ios::fixed)<<setprecision(2)<<Value[i]<<endl;
}
return 0;
}
``