Rust Taskbook Level 9.3
Задание 1
Ask the user for two integers. Create a two-dimensional array whose size is taken from the numbers the user entered. Fill the array with random integers.
Задание 2
The following array is given:
javascriptlet arr = ["123", "456", "789"];
Transform this array into the following:
javascriptlet arr = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9}
];
Задание 3
Given some URL:
rustlet url: &str = "http://test.com/dir1/dir2/dir3/page.html";
Get the protocol from it:
rust"http"
Задание 4
Given a two-dimensional array:
rust[
[1, 5],
[2, 6],
[3, 7],
[4, 8}
]
Split its elements into two arrays:
rust[1, 2, 3, 4]
[5, 6, 7, 8]