Advertisement
Guest User

TailoringWorkshop

a guest
Apr 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2.  
  3. namespace TailoringWorkshop
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int tables = int.Parse(Console.ReadLine ());
  10.             double lenhtTable = double.Parse(Console.ReadLine());
  11.             double widhtTable = double.Parse(Console .ReadLine( ));
  12.  
  13.             double areaCovers = tables * (lenhtTable + 0.60) * (widhtTable + 0.60);
  14.             double areaSquare = tables * (lenhtTable / 2) * (lenhtTable / 2);
  15.             double priceUsd = areaCovers * 7 + areaSquare * 9;
  16.             double priceBgn = priceUsd * 1.85;
  17.  
  18.             Console.WriteLine($"{priceUsd:F2} USD");
  19.             Console.WriteLine($"{priceBgn:F2} BGN");
  20.            
  21.  
  22.            
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement