SaveText.Ru

Без имени
  1. x = int(input())
  2. steps = 0
  3.  
  4. while x > 0:
  5.     if x >= 5:
  6.         steps += 1
  7.         x -= 5
  8.     elif x > 0 and x < 5:
  9.         steps += 1
  10.         break
  11.  
  12. print(steps)

Share with your friends:

Print