Rust Taskbook Level 6.4

Задание 1

Ask the user to enter an integer via console. Get the factorial of the entered number.

Задание 2

Ask the user to enter a date in the format year-month-day. Check if they entered the value in the correct format.

Задание 3

Determine how many days are left until the New Year.

Задание 4

Get the current time as the following tuple:

rust("12", "59", "01")
Задание 5

Given a string:

rust"1 22 333 4444 22 5555 1"

Remove from this string all substrings in which the number of characters is more than three. In our case, we should get the following:

rust"1 22 333 22 1"