#include < stdio.h > void main() ... { float score[8][6],average[8],s[8][6],sum[8]=...{0},temp; int i,j,m,n; for(i=0;i<8;i++) ...{ printf("请输入第%d个歌手分数: ",i+1); for(j=0;j<6;j++)...{ scanf("%f",&score[i][j]); s[i][j]=score[i][j]; } for(m=0;m<5;m++) //每个歌手分数由大到小排序 ...{ for(n=m+1;n<6;n++) ...{ if(score[i][m]< score[i][n]) ...{ temp=score[i][m]; score[i][m]=score[i][n]; score[i][n]=temp; } } } average[i]=(score[i][1]+score[i][2]+score[i][3]+score[i][4])/4; //去掉最高、最低后的平均分数 } printf("歌手结果如下: "); printf("bianhao score1 score2 score3 score4 score5 score6 average "); for(i=0;i<8;i++) ...{ printf("%d %f %f %f %f %f %f %f ", i,s[i][0],s[i][1],s[i][2],s[i][3],s[i][4],s[i][5],average[i]); }}