Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fats = int(input())
- proteins = int(input())
- carbohydrates = int(input())
- calories = int(input())
- water = int(input())
- caloriesPerGram = (100 - water) * (calories / (calories * fats / 9 + calories * proteins / 4 + calories * carbohydrates / 4))
- print(f'{caloriesPerGram:.4f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement