Rust Taskbook Level 5.8
Задание 1
Ask the user for two integers. Fill the vector with integers from the range specified by the user.
Задание 2
Given an array:
rust[
[2, 1, 4, 3, 5],
[3, 5, 2, 4, 1],
[4, 3, 1, 5, 2],
}
Sort the elements in each subarray.
Задание 3
Given some array of numbers, for example, like this:
rustlet arr = [1, 2, 3, 4, 5, 6];
Merge pairs of elements together:
rust[12, 34, 56]
Задание 4
Display the following pyramid on the screen:
111
222
333
444
555
666
777
888
999
222
333
444
555
666
777
888
999
Задание 5
Given a structure with a date:
ruststruct Date
{
year: u16,
month: u8,
day: u8,
}
Ask the user for a date in the format year-month-day. Write this date to a variable implementing our date structure.