Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double w = double.Parse(Console.ReadLine()) * 100;
- double h = double.Parse(Console.ReadLine()) * 100 - 100;
- int rows = (int) w / 120;
- int cols = (int) h / 70;
- int totalWP = rows * cols;
- int result = totalWP - 3;
- Console.WriteLine(result);
Advertisement
Add Comment
Please, Sign In to add comment