Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- money = int(input())
- hundreds = (money-(money%100))/100
- fifties = ((money%100)-(money%100)%50)/50
- twenties = (((money%100)%50)-(money%100%50%20))/20
- tens = ((money%100%50%20) - (money%100%50%20%10))/10
- fives = ((money%100%50%20%10)-(money%100%50%20%10%5))/5
- twos = ((money%100%50%20%10%5)-(money%100%50%20%10%5%2))/2
- ones = ((money%100%50%20%10%5%2)-(money%100%50%20%10%5%2%1))
- print(money)
- print("%i nota(s) de R$ 100,00"%hundreds)
- print("%i nota(s) de R$ 50,00"%fifties)
- print("%i nota(s) de R$ 20,00"%twenties)
- print("%i nota(s) de R$ 10,00"%tens)
- print("%i nota(s) de R$ 5,00"%fives)
- print("%i nota(s) de R$ 2,00"%twos)
- print("%i nota(s) de R$ 1,00"%ones)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement