C++ Taskbook Level 4.9

Задание 1

Given a string of letters and numbers:

cppstd::string str = 'a1b2c345';

Please make sure that this line does not contain more than three letters.

Задание 2

Given an array:

cppint arr[10];

Use a loop to fill this array with random integers between 1 and 100.

Задание 3

Given a string:

cpp"abcdefg"

Remove every third character from this line. In our case, we should get the following:

cpp"abdeg"
Задание 4

Given an array with numbers of days of the week:

cppint arr[] = {1, 2, 7};

Write the names of these months into a new array:

cppstd::string[] {"Mon", "Tue", "Sun"}