C++ Taskbook Level 4.5

Задание 1

Print to the console all numbers from 1 to 1000, the sum of whose digits is divisible by 3 or by 9.

Задание 2

Write a program that will generate the following string:

cpp"xxxxx yyyyy zzzzz"
Задание 3

The values ​​given are in pixels and contain integers:

cppstd::string size1 = "12px";
std::string size2 = "15px";

Add these values ​​together so that the result is also in pixels:

cpp"28px"
Задание 4

Given an array:

cppint[] {1, 2, 3}

Create a new array so that each element of the first array is repeated twice:

cppint[] {1, 1, 2, 2, 3, 3}
Задание 5

Given an array:

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

Create a new array such that the new array contains all the elements of the first array except for the first N elements.