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