Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- int tables = int.Parse(Console.ReadLine());
- double tablesLength = double.Parse(Console.ReadLine());
- double tablesWidth = double.Parse(Console.ReadLine());
- double tableCoverArea = tables * (tablesLength + 2 * 0.30) * (tablesWidth + 2 * 0.30);
- double quadsArea = tables * (tablesLength / 2) * (tablesLength / 2);
- double priceUSD = (tableCoverArea * 7) + (quadsArea * 9);
- double priceBGN = priceUSD * 1.85;
- Console.WriteLine($"{priceUSD:F2} USD");
- Console.WriteLine($"{priceBGN:F2} BGN");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement