Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. lemon_int = (input('Lemons: '))
  3.  
  4. sugar_int = (input('Sugar: '))
  5.  
  6. water_int = (input('Water: '))
  7.  
  8. price_of_cup = (1.20)
  9.  
  10. juice = (lemon_int*980)
  11. pre_juice = (lemon_int*1000)
  12. all_juice = (juice + pre_juice)
  13.  
  14. one = (sugar_int*30)
  15. two = (one/100)
  16.  
  17. whole_juice = (all_juice+two)
  18.  
  19. sold_cups = (whole_juice/150)
  20.  
  21.  
  22. profit = (sold_cups*price_of_cup)
  23.  
  24. print('All cups sold: ' + sold_cups)
  25.  
  26. print('Money earned: ' + profit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement