Advertisement
kvita

C# Code exercise 11

Sep 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 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 Birthdey
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double L = double.Parse(Console.ReadLine());
  14. double W = double.Parse(Console.ReadLine());
  15. double H = double.Parse(Console.ReadLine());
  16. double P = double.Parse(Console.ReadLine());
  17. double V = L * W * H * (1 - P) * 0.001;
  18.  
  19. double water = Math.Round(V, 3);
  20.  
  21. Console.WriteLine(water);
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement