Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flour_kg = float(input())
- flour_price = float(input())
- sugar_kg = float(input())
- egg_pack = float(input())
- yeast = float(input())
- flour_total = flour_kg * flour_price
- sugar_total = flour_kg * sugar_kg * 0.75
- egg_pack_total = flour_kg * egg_pack * 1.1
- yeast_total = flour_kg * 0.75 * yeast * 0.2
- total_sum = flour_total + sugar_total + egg_pack_total + yeast_total
- print(f"{total_sum:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement