#包含“stdio.h“
主()
{ int b【10】,I,j,temp
printf(“請輸入10數字\ n“);
for(I = 0;我& lt10;i++)
scanf(“% d“,& ampb【I】);
for(I = 1;我& lt10;i++)
{ temp = b【I】;
j = I-1;
while(j & gt;= 0 & amp& ampb【j】》;溫度)
{ b【j+1】= b【j】;j-;}
b【j+1】= temp;}
for(I = 0;我& lt10;i++)
printf(“% d“,b【I】);
}