Rust Taskbook Level 2.8
Задание 1
Given an array of strings:
rustlet arr: [&str; 3] = ["ab", "cd", "ef"];
Get an array of characters from these strings:
rust['a', 'b', 'c', 'd', 'e', 'f']
Задание 2
Given an integer containing a month number from 1 to 12:
rustlet num: u8 = 1;
Print the name of the month corresponding to this date.
Задание 3
Given a line:
rustlet txt: &str = "12345";
Get the first and last character of this string as follows:
rust"15"
Задание 4
Given variables containing the sides of a rectangle:
rustlet a: i16 = 10;
let b: i16 = 20;
Get the area and perimeter of this rectangle.