Console.WriteLine("请输入四家店的价格");
int[] money=new int[4];
int min = 0;
try { for (int i=0;imoney[i])
{
min =money [i];
}
}
Console .WriteLine ("最低价是{0}",min )
; }
catch {
Console.WriteLine("输入格式有误");
} Console.ReadKey();
Console.WriteLine("请输入四家店的价格");
int[] money=new int[4];
int min = 0;
try { for (int i=0;imoney[i])
{
min =money [i];
}
}
Console .WriteLine ("最低价是{0}",min )
; }
catch {
Console.WriteLine("输入格式有误");
} Console.ReadKey();