Write a program in C++ to create an array of 5 elements and print 2nd and 4th element.
pls anyone help me i want this asap i want the program of it
Answers
Answered by
2
Answer:
int main()
{
int a[5],i;
for(i=0;i<4;i++)
{
cin>>a[i]>>endl;
}
cout<<a[1]<<endl;
cout<<a[2]<<endl;
Similar questions