Advertisement
Arxero

Uchebna Zala

Jul 10th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 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 _14.Uchebna_Zala
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double h = double.Parse(Console.ReadLine());
  14.             double w = double.Parse(Console.ReadLine());
  15.             double workplace_height = 1.20;
  16.             double workplace_widht = 0.70;
  17.             double solution = Math.Floor (h / workplace_height);
  18.             double solution2 = Math.Floor (w / workplace_widht -1);
  19.             Console.WriteLine("{0}", (solution*solution2)-3);
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement