效果
代码
int[] points = {18,25,7,36,13,2,89,63};
int min = points[0];
int index = 0;
for (int i = 0; i < points.Length ; i++)
{
if (min>points[i])
{
min =points[i];
index = i;
}
}
Console.WriteLine("最低的积分{0}它在数组中的原始位置{1}",min,index);
Console.ReadKey();