Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. money = int(input ("enter dosh"))
  2. twenty = money//20
  3. print ("nos of 20'= ",twenty)
  4. tens = money%20//10
  5. print ("nos of 10'= ",tens)
  6. fives = money%20%10//5
  7. print ("nos of 5'= ",fives)
  8. twos = money%20%10%5//2
  9. print ("nos of 2'= ",twos)
  10. ones = money%20%10%5%2//1
  11. print ("nos of 1'= ",ones)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement