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