Advertisement
MladenKarachanov

Training Lab

Feb 11th, 2025
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. double length = double.Parse(Console.ReadLine());
  2. double width = double.Parse(Console.ReadLine());
  3.  
  4. int workPlace = 70;
  5. int workPlace2 = 120;
  6. int corridor = 100;
  7.  
  8. int numWidth = (int)width * 100;
  9. int numLength = (int)length * 100;
  10.  
  11. int sumWidth = (numWidth - corridor ) / workPlace;
  12. int sumLength = numLength / workPlace2;
  13.  
  14. int result = sumWidth * sumLength - 3;
  15. Console.WriteLine(result);
  16.  
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement