拉莫斯之舞
#include<stdio.h>#define N 5void main(){float data[N];int i,j,t;printf("请输入%d个同学的平均分数:\n",N);for(i=0;i<N;i++)scanf("%d",&data[i]);printf("\n");for(i=0;i<N;i++)for(j=0;j<N-1;j++)if(data[j]>data[j+1]){t=data[j];data[j]=data[j+1];data[j+1]=t;}printf("排序后的输出是;\n");for(i=0;i<N;i++)printf("%d",data[i]);}