#include <iostream.h>
#include<conio.h>
int main()
{
int a[5],b[5],c,d[10],f,m=0;
cout<<" Enter the 1st Array \n\n";
for (c=0;c<5;c++)
{
cin>>a[c];
}
cout<<" Enter the 2nd Array \n\n";
for (c=0;c<5;c++)
{
cin>>b[c];
}
cout<<"\n Merge Of Two Arrays is \n\n";
for (c=0;c<5;c++)
{
d[c]=a[c];
}
for (c=0;c<5;c++)
{
d[c+5]=b[c];
}
for (c=0;c<10;c++)
{
cout<<d[c]<<endl;
}
getch();
}
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment