You are given 2 arrays A (N) and D (N), where n is a given natural number.

You are given 2 arrays A (N) and D (N), where n is a given natural number. Combine them into one C (N * 2). Print array C. Must be done in Pascal.

program zzz1;
const n = 10; // set the number of numbers in the array
var
c: array [1..2 * n] of integer;
a, d: array [1..n] of integer;
j, p: integer;
begin
for j: = 1 to n do // randomly write numbers into the array
a [j]: = random (51);
for j: = 1 to n do
write (a [j], ”);
writeln;
for j: = 1 to n do
d [j]: = random (51);
for j: = 1 to n do
write (d [j], ”);
writeln;
for j: = 1 to n do
c [j]: = a [j];
p: = 0;
for j: = n + 1 to 2 * n do
begin
p: = p + 1; c [j]: = d [p];
end;
for j: = 1 to 2 * n do // display the array
write (c [j], ”);
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.