First year university programming course, encountered the following two problems I have to solve
Given an array of ints, print an array with the elements "rotated left"
e.g {1, 2, 3} yields {2, 3, 1}.
{1, 2, 3} -> {2, 3, 1}
{5, 11, 9} -> {11, 9, 5}
{7, 0, 0} -> {0, 0, 7}
* Given 2 int arrays, print a new array length 4 containing all their elements. *
e.g {1, 2}, {3, 4} -> {1, 2, 3, 4}
{4, 4}, {2, 2} -> {4, 4, 2, 2}
{9, 2}, {3, 4} -> {9, 2, 3, 4}
Can anyone help? Remember this is basic I wont really understand any tricky stuff, just the basic array, string and loops.
Thanks in advance