Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Bday2
- {
- class Program
- {
- static void Main(string[] args)
- {
- int lenght = int.Parse(Console.ReadLine());
- int width = int.Parse(Console.ReadLine());
- int height = int.Parse(Console.ReadLine());
- double percent = double.Parse(Console.ReadLine());
- int volume = lenght * width * height;
- double totalLiters = volume * 0.001;
- double totalPercent = percent * 0.01;
- double TotalLiters = totalLiters * (1 - totalPercent);
- Console.WriteLine($"{TotalLiters:F3}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement