#include <stdio.h>
void fun(int *a
,int n
,int y
)
{
int i
,j
;
for(i
=0;i
<n
;i
++){
if(y
>a
[i
]) break;
}
for(j
=n
;j
>i
;j
--)
a
[j
]=a
[j
-1];
a
[i
]=y
;
}
int main()
{int i
,a
[11]={20,18,16,14,12,10,8,6,4,2},x
;
void fun(int *,int n
,int y
);
scanf("%d",&x
);
fun(a
,10,x
);
for(i
=0;i
<11;i
++)
printf("%d ",*(a
+i
));
}
转载请注明原文地址: https://lol.8miu.com/read-1674.html