Advertisement
denitsas01

Untitled

Mar 23rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 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 DanceHall
  8. {
  9.     class DanceHall
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double HallLenght = double.Parse(Console.ReadLine());
  14.             double HallWidth = double.Parse(Console.ReadLine());
  15.             double SquareWardrobe = double.Parse(Console.ReadLine());
  16.  
  17.             double HallArea = (HallLenght*100) * (HallWidth*100);
  18.             double RectangleArea = HallArea / 10;
  19.             double SquareWardrobeArea = (SquareWardrobe*100) * (SquareWardrobe*100);
  20.             double SpaceLeftForDancers = (HallArea - RectangleArea - SquareWardrobeArea);
  21.             double DancersCourt = SpaceLeftForDancers / 7040;
  22.  
  23.             Console.WriteLine(Math.Round(DancersCourt));
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement