BdW44222

Untitled

Apr 12th, 2020
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double length = double.Parse(Console.ReadLine());
  10. double width = double.Parse(Console.ReadLine());
  11. double wardrobeSide = double.Parse(Console.ReadLine());
  12.  
  13. double areaHall = (length * 100) + (width * 100);
  14. double areaBench = areaHall / 10;
  15. double areaWardrobe = (wardrobeSide * 100) * (wardrobeSide * 100);
  16. double freeSpace = areaHall - areaBench - areaWardrobe;
  17.  
  18. double countPeople = freeSpace / 7040;
  19.  
  20. Console.WriteLine(Math.Floor(countPeople));
  21.  
  22. }
  23. }
  24. }
RAW Paste Data