Guest User

Untitled

a guest
Mar 25th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System;
  2. namespace P1.Training_Lab
  3. {
  4. class Program
  5. {
  6. static void Main()
  7. {
  8. var width = double.Parse(Console.ReadLine());
  9. var height = double.Parse(Console.ReadLine());
  10. var widthInCm = width * 100;
  11. var heightInCm = height * 100;
  12. var biura = Math.Floor((heightInCm - 100) / 70);
  13. var rows = Math.Floor(widthInCm / 120);
  14. var result = (biura * rows) - 3;
  15. Console.WriteLine(result);
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment