hawzze

fishTank_SoftUni

Jul 12th, 2020
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int lenght = int.Parse(Console.ReadLine());
  10.             int width = int.Parse(Console.ReadLine());
  11.             int height = int.Parse(Console.ReadLine());
  12.             double percent = double.Parse(Console.ReadLine());
  13.  
  14.             int volume = lenght * width * height;
  15.             double liters = volume * 0.001;
  16.             double p = percent * 0.01;
  17.  
  18.             double total = liters * (1 - p);
  19.             Console.WriteLine(total);
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.         }
  29.  
  30.     }
  31. }
RAW Paste Data