Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- food = float(input())
- hay = float(input())
- cover = float(input())
- weight = float(input())
- for i in range(1, 31):
- food -= 0.3
- if i % 2 == 0:
- hay -= food * 0.05
- if i % 3 == 0:
- cover -= weight / 3
- if food < 0 or hay < 0 or cover < 0:
- print("Merry must go to the pet store!")
- else:
- print(f"Everything is fine! Puppy is happy! Food: {food:.2f}, Hay: {hay:.2f}, Cover: {cover:.2f}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement