โ Back to Arrays
Question 317
Merge Two Arrays
Merge Two Arrays
Two arrays are given:a = {1, 2, 3}andb = {4, 5, 6}. Build one combined array containing all ofa's elements followed by all ofb'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.