Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Tailoring_Workshop
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double tables = double.Parse(Console.ReadLine());
  10.             double lenghOfTables = double.Parse(Console.ReadLine());
  11.             double widthOfTables = double.Parse(Console.ReadLine());
  12.             double tablecloths = tables * (lenghOfTables + 2 * 0.30) *
  13.                 (widthOfTables + 2 * 0.30);
  14.             double check = tables * (lenghOfTables / 2) * (lenghOfTables / 2);
  15.             double usd = tablecloths * 7 + check * 9;
  16.             double leva = usd * 1.85;
  17.  
  18.             Console.WriteLine($"{usd:f2} USD");
  19.             Console.WriteLine($"{leva:f2} BGN");
  20.  
  21.  
  22.            
  23.  
  24.  
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement