Rust Taskbook Level 6.10

Задание 1

Ask the user to enter two dates in the format year-month-day. Determine how many days there are between the entered dates.

Задание 2

Fill the array with random numbers from 1 to 100.

Задание 3

Output all dates of the current month to the console in the format year-month-day. Mark weekdays and weekends, as well as the current day.

Задание 4

Write a program that will generate the following string:

rust"12 34 56 78"
Задание 5

Write a program that will generate the following string:

java"1+2-3+4-5+6-7+8"
Задание 6

Two dates are given in the following structure:

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

Get the difference between these dates as the following structure:

ruststruct Time
{
  days: u16,
  hours: u8,
  minutes: u8,
  seconds: u8,
}