四个数如何排大小,用c语言

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/16 17:43:13

四个数如何排大小,用c语言

如果将4个数存在数组a中,则
找最大最小:
int max=a[0],min=a[0];
for(i=0;imax) max=a[i];
if(a[i]