Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace PoolDay
- {
- class Program
- {
- static void Main(string[] args)
- {
- double people = double.Parse(Console.ReadLine());
- double entrance = double.Parse(Console.ReadLine());
- double deskChair = double.Parse(Console.ReadLine());
- double umbrella = double.Parse(Console.ReadLine());
- double entrancePrice = people * entrance;
- double deskChairPrice = Math.Ceiling(people * 0.75) * deskChair;
- double umbrellaPrice = Math.Ceiling(people / 2) * umbrella;
- Console.WriteLine($"{entrancePrice + deskChairPrice + umbrellaPrice:F2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement