nvnnaidenov

ChangeTiles - School Book 2.1

Jul 27th, 2021
737
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class ChangeTiles
  4. {
  5.     static void Main()
  6.     {
  7.         int n = int.Parse(Console.ReadLine());
  8.         double wTile = double.Parse(Console.ReadLine());
  9.         double lTile = double.Parse(Console.ReadLine());
  10.         int wBench = int.Parse(Console.ReadLine());
  11.         int lBench = int.Parse(Console.ReadLine());
  12.  
  13.         double tileArea = wTile * lTile;
  14.         double benchArea = wBench * lBench;
  15.         double result = ((n * n) - benchArea) / tileArea;
  16.         double time = result * 0.2;
  17.  
  18.         Console.WriteLine(result);
  19.         Console.WriteLine(time);
  20.     }
  21. }
  22.  
RAW Paste Data