Advertisement
desislava_topuzakova

1. Cherry Jars

Apr 16th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. kompotJars = int(input()) + 1
  2. konfJars = int(input()) + 1
  3. cherriesKompot = (kompotJars * 0.300) + 0.05 * (kompotJars * 0.300)
  4. cherriesKonf = (konfJars * 0.650) + 0.1 * (konfJars * 0.650)
  5. sum = (cherriesKompot + cherriesKonf) * 3.20
  6.  
  7. print("%.2f" % sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement