Advertisement
kzborisov

Birthday

Sep 10th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Birthday
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int lengthCM = int.Parse(Console.ReadLine());
  14. int widthCM = int.Parse(Console.ReadLine());
  15. int heightCM = int.Parse(Console.ReadLine());
  16. double percent = double.Parse(Console.ReadLine());
  17.  
  18. double liters = lengthCM * widthCM * heightCM;
  19. liters = Liters * 0.001;
  20. percent = percent * 0.01;
  21.  
  22. double result = Liters * (1 - percent);
  23. Console.WriteLine($"{result:F3}");
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement