Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Birthday
- {
- class Program
- {
- static void Main(string[] args)
- {
- double aquariumLength = double.Parse(Console.ReadLine());
- double aquariumWidth = double.Parse(Console.ReadLine());
- double aquariumHeigth = double.Parse(Console.ReadLine());
- double percent = double.Parse(Console.ReadLine());
- double aquariumCapacity = aquariumHeigth * aquariumLength * aquariumWidth;
- double totalLiters = aquariumCapacity * 0.001;
- double calculatedPercent = percent * 0.01;
- double litersNeeded = totalLiters * (1 - calculatedPercent);
- Console.WriteLine("{0:F3}",litersNeeded);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement