fork download
  1. n = 24 # change to be given
  2. count = 0
  3. while n > 0 :
  4. if n >= 25 :
  5. n = n - 25
  6. count = count + 1
  7. elif n >= 10 :
  8. n = n - 10
  9. count = count + 1
  10. elif n >= 5 :
  11. n = n - 5
  12. count = count + 1
  13. elif n >= 1 :
  14. n = n - 1
  15. count = count + 1
  16. print (count)
Success #stdin #stdout 0.11s 10104KB
stdin
Standard input is empty
stdout
6