C++ Taskbook Level 5.8

Задание 1

Given an array:

cpp{
  {2, 1, 4, 3, 5},
  {3, 5, 2, 4, 1},
  {4, 3, 1, 5, 2},
}

Sort the elements in each subarray.

Задание 2

Given some array of numbers, for example, like this:

cppint arr[] = [1, 2, 3, 4, 5, 6];

Merge pairs of elements together:

cppint[] [12, 34, 56]
Задание 3

Display the following pyramid on the screen:

111
222
333
444
555
666
777
888
999