public class Tese {
public static void main(String[] args) {
int nem=0;
int [] points = new int[] {18,25,7,36,13,2,89,63};
int min=points[0];
for (int i = 1; i < points.length; i++) {
if(min>=points[i]) {
min=points[i];
nem=i;
}
}System.out.println("最低积分是:"+min);
System.out.println("下标是:"+nem);
}
}
public static void main(String[] args) {
int nem=0;
int [] points = new int[] {18,25,7,36,13,2,89,63};
int min=points[0];
for (int i = 1; i < points.length; i++) {
if(min>=points[i]) {
min=points[i];
nem=i;
}
}System.out.println("最低积分是:"+min);
System.out.println("下标是:"+nem);
}
}