Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace TailoringWorkshop
- {
- class Program
- {
- static void Main(string[] args)
- {
- int table = int.Parse(Console.ReadLine());
- double lenght = double.Parse(Console.ReadLine());
- double width = double.Parse(Console.ReadLine());
- double areaOneCover = (lenght + 2 * 0.30) * (width + 2 * 0.30);
- double areaOneSquare = (lenght / 2) * (lenght / 2);
- double totalPriceUsd = (areaOneCover * 7 + areaOneSquare * 9) * table;
- double totalPriceBgn = totalPriceUsd * 1.85;
- Console.WriteLine($"{totalPriceUsd:F2} USD");
- Console.WriteLine($"{totalPriceBgn:F2} BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement