DidiMilikina

Training Lab

May 1st, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 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.             var width = double.Parse(Console.ReadLine());
  14.             var lenght = double.Parse(Console.ReadLine());
  15.  
  16.             var lenghtRoom = (lenght * 100) - 100;
  17.             var seetRow = Math.Floor(lenghtRoom / 70);
  18.  
  19.             var widthRoom = width * 100;
  20.             var seetNumber = Math.Floor(widthRoom / 120);
  21.             var totalSeets = (seetRow * seetNumber) - 3;
  22.             Console.WriteLine(totalSeets);
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment