C++ Taskbook Level 3.4

Задание 1

Given an array of numbers

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

Count the number of negative numbers in this array.

Задание 2

Given some integer:

cppint num = 1357;

Check that all digits of this number are odd.

Задание 3

Given a number:

cppint 12345

Get an array of digits of this number:

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

Two arrays are given:

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

Combine these arrays into one:

cppint[] {1, 2, 3, 4, 5, 6}