- 博客(1)
- 收藏
- 关注
原创 求数组最大值和最大值所在位置
public class Zuida { public static void main(String[] args) { int[] arr = {89, 78, 85, 67, 92, 74, 99, 80 }; for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); } System.out.println(); int max = arr[0]; int sum = 0; .
2021-11-18 00:18:40 266
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人