Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- priceWhiskey = float(input())
- beerQuantity = float(input())
- wineQuantity = float(input())
- brandyQuantity = float(input())
- whiskeyQuantity = float(input())
- priceBrandy = (priceWhiskey / 2)
- priceWine = priceBrandy - (0.4 * priceBrandy)
- priceBeer = priceBrandy - (0.8 * priceBrandy)
- sumWhiskey = (priceWhiskey * whiskeyQuantity)
- sumBrandy = (priceBrandy * brandyQuantity)
- sumWine = (priceWine * wineQuantity)
- sumBeer = (priceBeer * beerQuantity)
- print('%.2f' % (sumWhiskey+sumBrandy+sumWine+sumBeer))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement