Įterpimo

//——Elemento įterpimo į masyvą algoritmas——–

{
for (int i = n; i > k; i–)
X[i] = X[i-1];
n = n + 1;
X[k] = b;
}