Advertisement
rado8506

Change Tiles

Jan 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 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 ConsoleApp1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double n = double.Parse(Console.ReadLine());
  14.             double Wplochka = double.Parse(Console.ReadLine());
  15.             double Lplochka = double.Parse(Console.ReadLine());
  16.             double Wpeika = double.Parse(Console.ReadLine());
  17.             double Lpeika = double.Parse(Console.ReadLine());
  18.  
  19.             double areaPlaza = n * n;
  20.             double areaPeika = Wpeika * Lpeika;
  21.             double areaPlochka = Wplochka * Lplochka;
  22.             double areaToCcover = areaPlaza - areaPeika;
  23.             double NumPlochki = areaToCcover / areaPlochka;
  24.             double timeToCover = NumPlochki * 0.2;
  25.  
  26.             Console.WriteLine(NumPlochki);
  27.             Console.WriteLine(timeToCover);
  28.  
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement