using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
int[] points = { 18, 25, 7, 36, 13, 2, 89, 63 };
int min=points[0];
int index=0;
for(int i=0;i<=7;i++)
{
if(points[i]
{
min=points[i];
index=i;
}
}
Console.WriteLine("最低积分是:{0}",min);
Console.WriteLine("最低积分的下标是:{0}",index);
Console.ReadKey();
}
}
}
网友评论