damesova

Classroom

Dec 14th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. double w = double.Parse(Console.ReadLine()) * 100;
  2. double h = double.Parse(Console.ReadLine()) * 100 - 100;
  3.  
  4. int rows = (int) w / 120;
  5. int cols = (int) h / 70;
  6.  
  7. int totalWP = rows * cols;
  8.  
  9. int result = totalWP - 3;
  10.  
  11. Console.WriteLine(result);
Advertisement
Add Comment
Please, Sign In to add comment