Chandra Chandu #include using namespace std; int main() { vectorv; int n,i,j,m1; cin>>n>>m1; int a[n],b[m1]; for(i=0;i>a[i]; v.push_back(a[i]); } for(j=0;j>b[j]; v.push_back(b[j]); } sort(v.begin(),v.end()); for(i=0;i<v.size();i++) { cout<<v[i]<<" "; } } Log in to Reply
#include
using namespace std;
int main()
{
vectorv;
int n,i,j,m1;
cin>>n>>m1;
int a[n],b[m1];
for(i=0;i>a[i];
v.push_back(a[i]);
}
for(j=0;j>b[j];
v.push_back(b[j]);
}
sort(v.begin(),v.end());
for(i=0;i<v.size();i++)
{
cout<<v[i]<<" ";
}
}