Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. using System;
  2.  
  3. namespace test
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double firstPoolA = double.Parse(Console.ReadLine());
  10. double firstPoolB = double.Parse(Console.ReadLine());
  11. double firstPoolC = double.Parse(Console.ReadLine());
  12.  
  13. double firstPoolVolume = firstPoolA * firstPoolB * firstPoolC;
  14.  
  15. double secondPoolA = double.Parse(Console.ReadLine());
  16. double secondPoolB = double.Parse(Console.ReadLine());
  17. double secondPoolC = double.Parse(Console.ReadLine());
  18.  
  19. double secondPoolVolime = secondPoolA * secondPoolB * secondPoolC;
  20.  
  21. double firstD = double.Parse(Console.ReadLine());
  22. double secondD = double.Parse(Console.ReadLine());
  23.  
  24. double firseTime = firstPoolVolume / firstD;
  25. double secondTime = secondPoolVolime / secondD;
  26.  
  27. double changedD = secondPoolVolime / firseTime;
  28.  
  29. Console.WriteLine($"Time for pool one: {firseTime}");
  30. Console.WriteLine($"Time for pool two: {secondTime}");
  31. Console.WriteLine($"Changed D: {changedD}");
  32.  
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement