Advertisement
desislava_topuzakova

Training Lab

Jun 12th, 2022
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 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.Floor((length* 100)/ lengthSide);
  16. double areaWidthWorkplace = Math.Floor((width *100 -100) / widthSide);
  17. double workplaceCount = areaLengtWorkplace * areaWidthWorkplace -3;
  18.  
  19. Console.WriteLine(Math.Floor(workplaceCount));
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement