MiroslavKisov

Training Lab

Jul 18th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Training_Lab
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double w = double.Parse(Console.ReadLine());
  14.             double h = double.Parse(Console.ReadLine());
  15.             double rows = w / 1.2;
  16.             rows = Math.Floor(rows);
  17.             double cols = (h - 1.0) / 0.7;
  18.             cols = Math.Floor(cols);
  19.             double NumberOfWorkPlaces = rows * cols-3;
  20.             Console.WriteLine(NumberOfWorkPlaces);
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment