Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = float(input())
- days = 0
- weeks = 0
- while a <= 22.0:
- if days == 7:
- days = 0
- weeks += 1
- else:
- days += 1
- a = float(input())
- if days == 7:
- days = 0
- weeks += 1
- print(weeks)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement