TOPIC

Onde está o erro ? 5% Wrong Answer

felipesouzads asked 4 months ago

x = [100,50,20,10,5,2,1]

n = int(input())

lista = []

print(n)

for i in x:

lista.append(n//i)

n = n%i

print(f'{lista[0]} notas(s) de R$ {x[0]},00\n{lista[1]} notas(s) de R$ {x[1]},00\n{lista[2]} notas(s) de R$ {x[2]},00\n{lista[3]} notas(s) de R$ {x[3]},00\n{lista[4]} notas(s) de R$ {x[4]},00\n{lista[5]} notas(s) de R$ {x[5]},00\n{lista[6]} notas(s) de R$ {x[6]},00')

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.