Advertisement
desislavg

Untitled

Apr 19th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp8
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double lengthSide = 120;
  10. double widthSide = 70;
  11.  
  12. double length = double.Parse(Console.ReadLine());
  13. double width = double.Parse(Console.ReadLine());
  14.  
  15. double areaLengtWorkplace = Math.Round((length* 100)/ lengthSide);
  16. double areaWidthWorkplace = Math.Round((width *100 -100) / widthSide);
  17. double workplaceCount = areaLengtWorkplace * areaWidthWorkplace -3;
  18.  
  19. Console.WriteLine(workplaceCount);
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement