#代码
try
{
Console.WriteLine("请输入要四家店的价格");
int[] money=new int[4];
for (int i = 0; i < money.Length; i++)
{
Console.WriteLine("第{0}店的价格:",i+1);
money[i] = Convert.ToInt32(Console.ReadLine());
}
Array.Sort(money);
Console.Write("最低价格是:{0}",money[0]);
}
catch
{
Console.WriteLine("输入格式有误");
}
Console.ReadKey();