static void Main(string[] args)
{
Console.WriteLine("请输入数字a:");
int a=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入数字b:");
int b=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("数值a:"+a);
Console.WriteLine("数值b:"+b);
Console.WriteLine("最大值:{0},最小值:{1}",Math.Max(a,b),Math.Min(a,b));
Console.ReadLine();
}