โ Back to Arrays
Question 391
Concatenate Two Arrays
Concatenate Two Arrays
Given the arrays{1, 2, 3}and{4, 5, 6}, build one new array containing the first array's elements followed by the second array's elements, then print it on one line separated by spaces: 1 2 3 4 5 6
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 (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.