Rust Taskbook Level 3.4

Задание 1

Given an array of numbers

rustlet arr: [i:8; 6] = [1, -2, -3, 4, -5, 6];

Count the number of negative numbers in this array.

Задание 2

Given some integer:

rustlet num: u16 = 1357;

Check that all digits of this number are odd.

Задание 3

Given some integer:

rustlet num: u16 = 12345

Get an array of digits of this number:

rust[1, 2, 3, 4, 5]
Задание 4

Two arrays are given:

rustint arr1: [i8; 3] = [1, 2, 3];
int arr2: [i8; 3] = [4, 5, 6];

Combine these arrays into one:

rust[1, 2, 3, 4, 5, 6]