What's the problem in output where the algorithm was correct ????
#include<iostream>
#include<stdio.h>
using namespace std;
main()
{
int LA[100],K=1,N=5,L;//K=POSITION...N=element
for(int i=0;i<=4;i++)
{
cin>>LA[i];
}
L=LA[K];
for(int J=K ; J<N-1; J++)
{
LA[J]=LA[J+1];
}
cout<<"DELETE ITEM:";
N=N-1;
for(int P=0;P<=4;P++)
{
cout<<" "<<LA[P];
}
}