Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- money = int(input ("enter dosh"))
- twenty = money//20
- print ("nos of 20'= ",twenty)
- tens = money%20//10
- print ("nos of 10'= ",tens)
- fives = money%20%10//5
- print ("nos of 5'= ",fives)
- twos = money%20%10%5//2
- print ("nos of 2'= ",twos)
- ones = money%20%10%5%2//1
- print ("nos of 1'= ",ones)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement