赞
踩
public class SanYuan {
public static void main(String[]args) {
int a[]= {32,43312323,24,65,49234,234335,65,423,827612,675676,54,6677,334,3232325,1233654344,5398,654,2454,2354,53455},i;
int max=a[0];
for(i=1;i<a.length;i++) {
max=(max>a[i])?max:a[i];
}
System.out.println("最大值是"+max);
}}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。