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