Rust Taskbook Level 6.7
Задание 1
Ask the user to enter their phone number. Check that the entered data matches the phone number format.
Задание 2
Get the vector of all weekend days of the current year in the format year-month-day.
Задание 3
Write code that will compare the two dates below and print a message telling you which one is greater:
javascriptlet date1 = "2020-11-30";
let date2 = "2020-12-31";
Задание 4
The date is given in the following structure:
ruststruct Date
{
year: u16,
month: u8,
day: u8,
}
Get the day of the week corresponding to this date.
Задание 5
Given a number:
rust123456
Find the sum of the pairs of digits of this number. In our case, we mean the following:
rust12 + 34 + 56