Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _08.FishTank
- {
- class Program
- {
- static void Main(string[] args)
- {
- int lenghtInCm = int.Parse(Console.ReadLine());
- int widthInCm = int.Parse(Console.ReadLine());
- int heightInCm = int.Parse(Console.ReadLine());
- double percentage = double.Parse(Console.ReadLine());
- double liter = 0.001;
- double volumeOfAquarium = lenghtInCm * widthInCm * heightInCm;
- double litersCollect = volumeOfAquarium * liter;
- double percentageOfWater = percentage * 0.01;
- double litersNeeded = volumeOfAquarium * (1 - percentageOfWater);
- Console.WriteLine(litersNeeded*0.001);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement