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)
- {
- int lenght = int.Parse(Console.ReadLine());
- int width = int.Parse(Console.ReadLine());
- int high = int.Parse(Console.ReadLine());
- double percent = double.Parse(Console.ReadLine());
- int vol = lenght * width * high; // sm3
- double volumeL = vol * 0.001; // L
- percent = percent * 0.01;
- double realVol = volumeL * (1 - percent);
- Console.WriteLine("{0:F3}", realVol);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement