09. Aquarium

mail@pastecode.io avatar
unknown
csharp
a year ago
664 B
72
Indexable
namespace aquarium2
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int lenght = int.Parse(Console.ReadLine());
            int widht = int.Parse(Console.ReadLine());
            int height = int.Parse(Console.ReadLine());
            double percentage = double.Parse(Console.ReadLine()) / 100;

            double volume = (lenght * widht * height);

            double metricVolume = volume / 1000;

            double totalVolume = metricVolume * (1 - percentage);

            double rounded = Math.Round(totalVolume , 2);

            Console.WriteLine(rounded);




        }
    }
}