# TÓPICO

Wrong ans 5%

#### Md Feroj Miah perguntou 2 months ago

include

int main() { int total, temp;

``````scanf("%d", &total);

//for R\$ 100
temp = total / 100;
printf("%d nota(s) de R\$ 100,00\n", temp);

total = total - temp*100;

//for R\$ 50
temp = total / 50;
printf("%d nota(s) de R\$ 50,00\n", temp);

total = total - temp*50;

//for R\$ 20
temp = total / 20;
printf("%d nota(s) de R\$ 20,00\n", temp);

total = total - temp*20;

//for R\$ 10
temp = total / 10;
printf("%d nota(s) de R\$ 10,00\n", temp);

total = total - temp*10;

//for R\$ 5
temp = total / 5;
printf("%d nota(s) de R\$ 5,00\n", temp);

total = total - temp*5;

//for R\$ 2
temp = total / 2;
printf("%d nota(s) de R\$ 2,00\n", temp);

total = total - temp*2;

//for R\$ 1
temp = total / 1;
printf("%d nota(s) de R\$ 1,00\n", temp);

return 0;``````

}

why its shoshowing that ''wrong answer 5%"* rAfterAfterAfterAfter

Lembre de não publicar soluções. Sua publicação pode ser revisada por nossos moderadores.

• #### Maycon Borges respondido 2 days ago

missing one printf with the amount of money on the top