Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApplication1
  4. {
  5.     internal class Class1
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.  
  10.                        double L = double.Parse(Console.ReadLine());
  11.                        double W = double.Parse(Console.ReadLine());
  12.                        double A = double.Parse(Console.ReadLine());
  13.            
  14.                        double zala = L * 100 * W * 100;
  15.                        double garderob = A *100* A*100;
  16.                        double pejka = zala / 10;
  17.                        double tanci = zala - garderob - pejka;
  18.                        double tanciori = tanci / (40 + 7000);
  19.            
  20.                        Console.WriteLine(Math.Floor(tanciori));
  21.         }
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement