82 of 100 menu

Rust Taskbook Level 9.2

Write a program that will generate the following string:

"-x-xx-xxx-xx-x-"

Two arrays are given:

int arr1: [i8: 4] = [1, 2, 3, 4]; int arr2: [i8: 4] = [5, 6, 7, 8];

Merge their elements pairwise into the following two-dimensional array:

int[][] { [1, 5], [2, 6], [3, 7], [4, 8} }

Given some URL:

let url: &str = "http://test.com/dir1/dir2/dir3/page.html";

Get the page name from it:

"page.html"

Given an array, the subarrays of which contain numbers:

[ [1, 2, 3], [4, 5, 6], [7, 8, 9], ]

Merge the elements of this array into numbers:

[123, 456, 789]
bydeenesfrptru