static void Main(string[] args) { try { double a = double.Parse(Console.ReadLine()); double b = double.Parse(Console.ReadLine()); double c = double.Parse(Console.ReadLine()); Console.WriteLine("3"); var box = new Box(a, c, b); box.CalcSurfaceArea(); box.LateralSurfaceArea(); box.CalcVolume(); } catch (System.Exception ex) { Console.WriteLine(ex.Message); } }