int a[10];scanf("%d",&n);i < k+1;i < n;i++a[i] < a[index]if(index != k){temp = a[i];a[i] = a[index];a[index] = temp;}printf("%d",a[i]);