# include <stdio.h>
# define N
main(){
int a, b;
int array[N]={,,,,,,,,,,,,,,,,}; //array中输入需要排序的数字
int max = array[];
for(a = ; a < N; a++){
if(array[a]>max){
max = array[a]; //使用max函数,快速筛选出最大值
}
}
printf("Max = %d\n",max,b);
}
2024-01-25 10:00:04
# include <stdio.h>
# define N
main(){
int a, b;
int array[N]={,,,,,,,,,,,,,,,,}; //array中输入需要排序的数字
int max = array[];
for(a = ; a < N; a++){
if(array[a]>max){
max = array[a]; //使用max函数,快速筛选出最大值
}
}
printf("Max = %d\n",max,b);
}