Advertisement
Guest User

Untitled

a guest
Jan 30th, 2022
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace P04.BottleDeposit
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int halfLiterBottles = int.Parse(Console.ReadLine());
  10. int oneLiterBottles = int.Parse(Console.ReadLine());
  11.  
  12. double totalSum = halfLiterBottles * 0.1 + oneLiterBottles * 0.25;
  13.  
  14. Console.WriteLine($"{totalSum:F2}");
  15. }
  16. }
  17. }
Advertisement
RAW Paste Data Copied
Advertisement