SHARE
TWEET

Untitled

denitsas01 Mar 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top