#include <stdio.h>
int main()
{
int m, n, i, j, r, k, l;
printf ("\nVvedite rasmer mass1: ");
scanf ("%d", &n);
printf ("\nVvedite rasmer mass2: ");
scanf ("%d", &m);
int mass1[n], mass2[m], res[r];
for (i = 0; i < n; i++)
{
printf("mass1[%d] = ", i);
scanf("%d", &mass1[i]);
}
for (j = 0; j < m; j++)
{
printf("mass2[%d] = ", j);
scanf("%d", &mass2[j]);
}
r = n + m;
for (k = 0; k < n; k++)
{
res[k] = mass1[k];
}
for (k = n; k < r; k++)
{
res[k] = mass2[l] && l++;
}
}