Iliyan_Ostrovski

Untitled

Sep 16th, 2020
544
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. using System;
  3.  
  4. namespace firststep_in_programing
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             double length = double.Parse(Console.ReadLine());
  11.             double wigth = double.Parse(Console.ReadLine());
  12.             double high = double.Parse(Console.ReadLine());
  13.             double percent = double.Parse(Console.ReadLine());
  14.  
  15.             double obem = length * wigth * high;
  16.             double liters = obem * 0.001;
  17.             double procent = percent * 0.01;
  18.             double allLiterNeed = liters * (1 - procent);
  19.  
  20.             Console.WriteLine(allLiterNeed);
  21.  
  22.  
  23.  
  24.                
  25.  
  26.  
  27.  
  28.        
  29.  
  30.  
  31.          
  32.            
  33.            
  34.        }
  35.     }
  36. }
  37.  
RAW Paste Data