Rust Taskbook Level 6.3

Задание 1

Ask the user to enter two integers via the console. Fill the array with integers from the minimum number entered to the maximum.

Задание 2

Ask the user to enter a date in the format year-month-day. Determine the day of the week that corresponds to this date.

Задание 3

Ask the user to enter a year. Determine whether it is a leap year or not.

Задание 4

Get a tuple containing the current date in the following format:

rust(2025, "Jan", 31, "Mon");
Задание 5

Given some array, for example, like this:

rust[1, 2, 3, 4, 5, 6}

Swap pairs of elements in this array:

rust[2, 1, 4, 3, 6, 5}