//数组中元素的最大值、最小值、平均数、总和等 int [] arr10 =new int [10]; for(int i =0; imaxValue) { maxValue=arr10[i]; } } System.out.println(maxValue); //求最小值 int minValue =arr10[0]; for(int i =0;i
欢迎分享,转载请注明来源:内存溢出
//数组中元素的最大值、最小值、平均数、总和等 int [] arr10 =new int [10]; for(int i =0; imaxValue) { maxValue=arr10[i]; } } System.out.println(maxValue); //求最小值 int minValue =arr10[0]; for(int i =0;i
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)