Advertisement
3vo

Bottle deposit

3vo
Oct 18th, 2022 (edited)
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*Bottle Deposit
  2.  
  3. When you buy something to drink you make a deposit for the bottle. Each bottle has a different deposit. Half liter bottles have $0.1 deposit and the one liter bottles have $0.25 deposit. Calculate the sum which you will make when returning the bottles. You must print two digits after the decimal point.
  4. Input
  5.  
  6.     On the first line you will receive the number of 0.5L bottles.
  7.     On the second line you will receive the number of 1L bottles.
  8.  
  9. Output
  10.  
  11.     You should print the total sum you will earn.
  12.  
  13. Input
  14.  
  15. 10
  16.  
  17. 10
  18.  
  19. Output
  20.  
  21. 3.50
  22. */
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement