09. Aquarium
unknown
csharp
2 years ago
664 B
82
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);
}
}
}Editor is loading...