// SELECTION SORT PROGRAM BY MYSCIENCEDICTIONARY.COM #include #include void main() { clrscr(); int a[10],i,j,small,pos,temp; cout<<"\n******************************* SELECTION SORT *******************************"; cout<<"\n\t Enter 10 Values :\t"; for(i=0;i<=9;i++) { cin>>a[i]; } for(i=0;i<=9;i++) { small=a[i]; pos=i; for(j=i;j<=9;j++) { if(small>a[j]) { small=a[j]; pos=j; } } temp=a[i]; a[i]=small; a[pos]=temp; } cout<<"\n\t Array after sorting is :\n\n\t"; for(i=0;i<=9;i++) { cout<