Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics.Metrics;
- namespace firstLesson
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int length = int.Parse(Console.ReadLine());
- int width = int.Parse(Console.ReadLine());
- int height = int.Parse(Console.ReadLine());
- double percent = double.Parse(Console.ReadLine());
- double volumeLiters = length * width * height * 0.001;
- double waterPercent = 1 - (percent / 100);
- double result = volumeLiters * waterPercent;
- string formattedResult = result.ToString("F2");
- Console.WriteLine(formattedResult);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement