Rust Taskbook Level 4.5
Get the vector of all numbers from 1
to 1000
whose sum of digits is divisible by 3
or by 9
.
Given an integer:
let num: i16 = 12;
Write a program that will fill a vector with divisors of this number.
Write a program that will generate the following string:
"xxxxx yyyyy zzzzz"
The values given are in pixels and contain integers:
let size1: &str = "12px";
let size2: &str = "15px";
Add these values together so that the result is also in pixels:
"28px"
Given a vector:
[1, 2, 3]
Create a new vector so that each element of the first vector is repeated twice:
[1, 1, 2, 2, 3, 3]
Given a vector:
[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.