C++ Taskbook Level 4.5
Print to the console all numbers from 1
to 1000
, the sum of whose digits is divisible by 3
or by 9
.
Write a program that will generate the following string:
"xxxxx yyyyy zzzzz"
The values given are in pixels and contain integers:
std::string size1 = "12px";
std::string size2 = "15px";
Add these values together so that the result is also in pixels:
"28px"
Given an array:
int[] {1, 2, 3}
Create a new array so that each element of the first array is repeated twice:
int[] {1, 1, 2, 2, 3, 3}
Given an array:
int 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.