Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7. int num = int.Parse(Console.ReadLine());
  8. string biggesrKeg = string.Empty;
  9. double maxVolume = double.MinValue;
  10.  
  11. for (int i = 0; i < num; i++)
  12. {
  13. string model = Console.ReadLine();
  14. double radius = double.Parse(Console.ReadLine());
  15. int height = int.Parse(Console.ReadLine());
  16.  
  17. double volume = Math.PI * radius ^ 2 * height;
  18.  
  19. if (volume > maxVolume)
  20. {
  21.  
  22. }
  23. }
  24.  
  25.  
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement