0

Now Ineed help combining arrays. Please help.

Here's the code Ihave so far.

```
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int findmax (int a1[45], int a2[50], int i, int j);
int findmin (int a1[45], int a2[50], int i, int j);
int main(void)
{
unsigned seed = time (0);
srand(seed);
cout<<"First Array"<<endl;
int a1[45];
for (int i = 0; i < 45; i++)
a1[i] = 1 + rand () % 45;
cout <<a1[i]<<endl;}
cout<<"Second Array"<<endl;
int a2[50];
for (int j = 0; j < 50; i++)
a2[j] = 1 + rand () % 50;
if (a2[j] % 5 ==0)
cout<<a2[j]<<endl;}
cout<<"Third Arrary"<<endl;
cout<<max1<<endl;
cout<<"Forth Arrary"<<endl;
cout<<max2<<endl;
cout<<"Fifth Array"<<endl;
cout<<min1<<endl;
int findmax(int a1[i], int i)
{
int max1;
min = 1;
for (i=0; i<45; i++)
{
if(a1[i] > min)
max1=a1[i];
}
return max1;
}
int findmax(int a2[j], int j)
{
int max2;
min = 1;
for (j=0; j<50; j++)
{
if(a2[j] > min)
max2=a1[j];
}
return max2;
}
int findmin(int a1[i], int i)
{
int i, min1;
min = 45;
for (i=0; i<45; i++)
{
if(a1[i] < min)
min1=a1[i];
}
return min1;
}
int findmin(int a2[j], int j)
{
int min2;
min = 50;
for (j=0; i<50; j++)
{
if(a2[j] < min)
min2=a2[j];
}
return min2;
}
```