Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01.PoolDay
- {
- class Program
- {
- static void Main(string[] args)
- {
- int people = int.Parse(Console.ReadLine());
- double entryTax = double.Parse(Console.ReadLine());
- double bedTax = double.Parse(Console.ReadLine());
- double umbrellaTax = double.Parse(Console.ReadLine());
- double totalTax = people * entryTax;
- double totalBedTax = (Math.Ceiling(people * 0.75)) * bedTax;
- double totalUmbrellaTax = (Math.Ceiling(people * 0.50)) * umbrellaTax;
- double endPrice = totalTax + totalBedTax + totalUmbrellaTax;
- Console.WriteLine($"{endPrice:f2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement