Rust Taskbook Level 5.7

Задание 1

Print to the console all numbers in the range from 10 to 1000, the sum of the first and second digits of which is equal to five.

Задание 2

Given an array:

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

Merge the elements of this array into one one-dimensional array:

rust[1, 2, 3, 4, 5, 6, 7, 8, 9}
Задание 3

Two lines are given:

rustlet txt: &str =1 = "12345";
let txt: &str =2 = "45678";

Get characters that are in both lines:

rust"45"
Задание 4

Given a structure with a date:

ruststruct Date
{
  year: u16,
  month: u8,
  day: u8,
}

Create a variable containing the data of this structure. Then write the data from the structure to the following tuple:

rust(2025, 12, 31)