Advertisement
Guest User

Untitled

a guest
Mar 4th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 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 ConsoleApp1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var d = int.Parse(Console.ReadLine());
  14.             var s = int.Parse(Console.ReadLine());
  15.             var h = int.Parse(Console.ReadLine());
  16.             var pr = double.Parse(Console.ReadLine());
  17.             var VAqua = d * s * h;
  18.             var VWater = VAqua * 0.001;
  19.             var procent = pr * 0.01;
  20.             var result = VWater * (1 - procent);
  21.  
  22.        
  23.                 Console.WriteLine("{0:f3}", result);
  24.  
  25.            
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement