nvnnaidenov

TrainingLab - Chapter 2.1

Feb 9th, 2022
1,173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. //Task 001, Chapter 2.1
  2. using System;
  3.  
  4. public class TrainingLab
  5. {
  6.     static void Main()
  7.     {
  8.         double len = double.Parse(Console.ReadLine());
  9.         double width = double.Parse(Console.ReadLine());
  10.  
  11.         int cols = ((int)(width * 100 - 100) / 70);
  12.         int rows = ((int)(len * 100 / 120));
  13.         int seats = cols * rows - 3;
  14.  
  15.         Console.WriteLine(seats);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment