//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];
}
for(k=3;k>1;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();

}
Posted by Techno crust On Monday, April 21, 2014 No comments

0 comments:

Post a Comment

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Like us

    as

    Contact Form

    Name

    Email *

    Message *