Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace softuni1
- {
- 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 liters = volume * 0.001;
- double p = percent * 0.01;
- double total = liters * (1 - p);
- Console.WriteLine(total);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement