static void Main(string[] args) { Gra go = new Gra(); string h = Console.ReadLine(); go = OperationFactory.createOperate(h); string lz = Console.ReadLine(); go.L = Convert.ToDouble(lz); string wd = Console.ReadLine(); go.W = Convert.ToDouble(wd); double result = go.GetResult(); Console.WriteLine("结果是:" + result); }