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 tables = int.Parse(Console.ReadLine ());
- double lenhtTable = double.Parse(Console.ReadLine());
- double widhtTable = double.Parse(Console .ReadLine( ));
- double areaCovers = tables * (lenhtTable + 0.60) * (widhtTable + 0.60);
- double areaSquare = tables * (lenhtTable / 2) * (lenhtTable / 2);
- double priceUsd = areaCovers * 7 + areaSquare * 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