Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- public class Program
- {
- public static void Main()
- {
- string[] input = Console.ReadLine().Split(',');
- double r1 = double.Parse(input[0])/10;
- double h1 = double.Parse(input[1])/10;
- double r2 = double.Parse(input[2])/10;
- double h2 = double.Parse(input[3])/10;
- double V1 = Math.PI * r1 * r1 * h1;
- double V2 = Math.PI * r2 * r2 * h2;
- Console.WriteLine("{0:F2}", Math.Max(V1, V2));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement