|   | #2wufuzhang2019-08-10 13:47 | 
    #include<stdio.h>
//问题:输入十个整数,调用一个函数按大小顺序排序排列
int main()
{
    void stor(int n[], int x);
    int stor1[20],y;
    
    for (y = 0; y < 9; y++)
    {
        scanf_s("%d", &stor1[y]);
        
    }
    stor(stor1,y);
    for(y=0;y<9;y++)
    printf("%d\t", stor1[y]);
}
void stor(int n[], int x)
{
    int max;
    for (x = 0; x < 9; x++)
    {
        if (n[x] > n[x + 1])
        {
            max = n[x];
            n[x] = n[x + 1];
            n[x + 1] = max;
        }
        printf("\n");
    }
}
输出顺序没改变  


