Rust Taskbook Level 4.5

Задание 1

Get the vector of all numbers from 1 to 1000 whose sum of digits is divisible by 3 or by 9.

Задание 2

Given an integer:

rustlet num: i16 = 12;

Write a program that will fill a vector with divisors of this number.

Задание 3

Write a program that will generate the following string:

rust"xxxxx yyyyy zzzzz"
Задание 4

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

rustlet size1: &str = "12px";
let size2: &str = "15px";

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

rust"28px"
Задание 5

Given a vector:

rust[1, 2, 3]

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

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

Given a vector:

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

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