Advertisement
gmiteva

TrainingLab

Nov 25th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2.  
  3. namespace TrainingLab
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             var length = double.Parse(Console.ReadLine());
  10.             var width = double.Parse(Console.ReadLine());
  11.             var workStationWidth = 70;//ширината на бюрото
  12.             var workStationLength = 120;//дължината на бюрото
  13.  
  14.             var widthCm = width * 100 - 100;
  15.  
  16.             var totalWidth = Math.Floor(widthCm / workStationWidth);
  17.             var totalLength = Math.Floor((length * 100) / workStationLength);
  18.             var result = totalWidth * totalLength - 3;
  19.  
  20.             Console.WriteLine(result);
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement