CJCoding With Joseph

Merge Two Arrays

Two arrays are given: a = {1, 2, 3} and b = {4, 5, 6}. Build one combined array containing all of a's elements followed by all of b's elements, then print it separated by single spaces:

1 2 3 4 5 6

There is no trailing space.

Expected Output:

1 2 3 4 5 6
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.