//write a program
to insert a value in specific place
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int la[5];
for(int
k=0;k<4;k++)
{
cout<<"enter
value of"<<k<<endl;
cin>>la[k];
}
la[k+1]=la[k];
cout<<"put
the value in 2"<<endl;
cin>>la[2];
cout<<la[0]<<la[1]<<la[2]<<la[3]<<la[4];
getch();
}
0 comments:
Post a Comment