void insertsort(int a[]) { int i,j; int min; for(i=1;i0;j--) { if(a[j-1]>min) a[j]=a[j-1]; else break; } a[j]=min; } }