# include  <stdio.h>
# define N 20
main(){
    int a, b;
    int array[N]={1,2,3,4,7,45,45,23,4,1,0,432,42,55,24,64,46};    //array中输入需要排序的数字
    int max = array[0];
    for(a = 1; a < N; a++){
        if(array[a]>max){
            max = array[a];        //使用max函数,快速筛选出最大值
        }
    }
    printf("Max = %d\n",max,b);
}

 

posted on 2017-09-24 19:24  RLee  阅读(314)  评论(0编辑  收藏  举报