Advertisement
svetoslav_0

Tailoring Workshop

Jan 15th, 2018
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _5.damn
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var tables = double.Parse(Console.ReadLine());
  14.             var weightTables = double.Parse(Console.ReadLine());
  15.             var widhtTables = double.Parse(Console.ReadLine());
  16.          
  17.  
  18.            
  19.             var all = tables * (weightTables + 2 * 0.30) * (widhtTables + 2 * 0.30);
  20.             var centre = tables * (weightTables / 2) * (weightTables / 2);
  21.            
  22.  
  23.  
  24.             var allofall1 = all *7 + centre *9 ;
  25.             var allofall2 = allofall1 *1.85 ;
  26.  
  27.             Console.WriteLine("{0:f2} USD",allofall1);
  28.             Console.WriteLine("{0:f2} BGN", allofall2);
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement