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