Rust Taskbook Level 4.9
Given a string of letters and numbers:
let txt: &str = 'a1b2c345';
Please make sure that this line does not contain more than three letters.
Two numbers are given:
let num1: u16 = 12;
let num2: u16 = 34;
Write the common divisors of these numbers into a new vector.
Given a vector:
let vct: Vec<i16> = Vec::new();
Use a loop to fill this vector with random integers between 1
and 100
.
Given a string:
"abcdefg"
Remove every third character from this line. In our case, we should get the following:
"abdeg"
Given an array with numbers of days of the week:
let arr = [1, 2, 7];
Write the names of these months into a new array:
["Mon", "Tue", "Sun"]