Advertisement
vvsvvs

Untitled

Oct 6th, 2022
627
0
123 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Training_Lab
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double inputW = double.Parse(Console.ReadLine());
  10.             double inputH = double.Parse(Console.ReadLine());
  11.  
  12.             inputH -= 1.0;
  13.  
  14.             int countW = (int)(inputW * 100) / 120;
  15.             int countH = (int)(inputH * 100) / 70;
  16.  
  17.             int numberSeats = (countW * countH) - 3;
  18.  
  19.             Console.WriteLine(numberSeats);
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement