Advertisement
ktopchiev

Dance Hall

Dec 5th, 2017
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Dance_Hall
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double l = double.Parse(Console.ReadLine());
  10.             double w = double.Parse(Console.ReadLine());
  11.             double a = double.Parse(Console.ReadLine());
  12.             double hall = (l * 100) * (w * 100);
  13.             double wardrobe = (a * 100) * (a * 100);
  14.             double bench = hall / 10;
  15.             double freespace = hall - wardrobe - bench;
  16.             double dancers = freespace / (40 + 7000);
  17.             Console.WriteLine(Math.Floor(dancers));
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement