Advertisement
EmoRz

TrainRoom

Jun 14th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 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 TrainingLab
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var lenght = double.Parse(Console.ReadLine());
  14.             var width = double.Parse(Console.ReadLine());
  15.  
  16.             var calculateLenght = Math.Truncate(lenght/1.2);
  17.             var calculateWidth = Math.Truncate((width-1) / 0.7);
  18.             var all = (calculateLenght * calculateWidth - 3);
  19.             Console.WriteLine(Math.Truncate(all));
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement