Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P04.BottleDeposit
- {
- class Program
- {
- static void Main(string[] args)
- {
- int halfLiterBottles = int.Parse(Console.ReadLine());
- int oneLiterBottles = int.Parse(Console.ReadLine());
- double totalSum = halfLiterBottles * 0.1 + oneLiterBottles * 0.25;
- Console.WriteLine($"{totalSum:F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement