Advertisement
nahidjamalli

Lesson #11

Apr 12th, 2020
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. double n, m, a;
  2. n = int.Parse(Console.ReadLine());
  3. m = int.Parse(Console.ReadLine());
  4. a = int.Parse(Console.ReadLine());
  5. int result = (long)ceil(n / a) * (long)ceil(m / a);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement