inta[10];\rprintf(nEntern:");\rscanf(n%dn,&n);\rprintf("Enter%dintegers:\n");\rfor(i=0;i<n;i++)\rscanf(n%du,&a[i]);\riIndex=0;\rfor(i=l;i<n;i++){\rif(a[i]<a[ilndex])ilndex=i;\r)\rtemp=a[O];a[O]=a[iIndex];a[iIndex]=temp;\rfor(i=0;i<n;i++)\rprintf(H%5dH,a[i]);EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rprintf('^\n,^);\rretum0;\rÝàáâãäåJ\r#include<stdio.h>\rintcomp(intarry[],intn)\r(\rinti,index,temp;\rprintff9S:\n")\rfor(i=0;i<n;i++)\r{scanf(n%du,&arry[i]);\r)\rfor(i=l,index=0;i<=n-1;i++)\r{if(arry[i]<arry[index])\r{index=i;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rtemp=arry[O];arryfO]=arry[index];arry[index]=temp;\rfor(i=0;i<n;i++)\r{printf(M%dn,arry[i]);\r)\rreturn0;\r)\rmain()\r{intn;\rinta[10];\rprintf("n9S:\n");\rscanf(,,%d,',&n);\rcomp(a,n);}