hawzze

C#SoftUni_шивашкиЦех

Jun 27th, 2020
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int tables = int.Parse(Console.ReadLine());
  10. double lenght = double.Parse(Console.ReadLine());
  11. double width = double.Parse(Console.ReadLine());
  12.  
  13. double areaCover = tables * (lenght + 2 * 0.30) * (width + 2 * 0.30);
  14. double areaSqr = tables * (lenght / 2) * (lenght / 2);
  15. double sumD = (areaCover * 7) + areaSqr * 9;
  16. double sumL = (sumD * 1.85);
  17.  
  18. Console.WriteLine($"{ sumD:f2}");
  19. Console.WriteLine($"{sumL:f2}") ;
  20.  
  21. }
  22.  
  23. }
  24. }
RAW Paste Data