Advertisement
MladenKarachanov

Training Lab

Feb 7th, 2025
53
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. double workplace = 70;
  4. double workplace2 = 120;
  5. double corridor = 100;
  6. double numWidth = width * 100 - corridor;
  7. double numLength = length * 100;
  8. double sumWidth = numWidth / workplace;
  9. double sumLength = numLength / workplace2;
  10. double result = sumWidth * sumLength - 3;
  11. Console.WriteLine(result);
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement