Advertisement
Guest User

Mda...

a guest
Oct 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. a = float(input())
  2. days = 0
  3. weeks = 0
  4. while a <= 22.0:
  5.     if days == 7:
  6.         days = 0
  7.         weeks += 1
  8.     else:
  9.         days += 1
  10.     a = float(input())
  11. if days == 7:
  12.     days = 0
  13.     weeks += 1
  14. print(weeks)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement