try-catch用法
try { Console.Write("请输入整数x:"); int x = Convert.ToInt32(Console.ReadLine()); Console.Write("请输入整数y:"); int y = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("x/y={0}", x / y); }catch(Divi
用户评论