Advertisement
RedstoneHair

Cat walking

Jul 15th, 2022
967
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. minutes = int(input())
  2. amount_of_walks = int(input())
  3. calories = int(input())
  4.  
  5. total_minutes = minutes * amount_of_walks
  6. total_calories = total_minutes * 5
  7. half_calories = calories * .5
  8. if (total_calories > half_calories): print(f"Yes, the walk for your cat is enough. Burned calories per day: {total_calories}.")
  9. else: print(f"No, the walk for your cat is not enough. Burned calories per day: {total_calories}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement