Rust Taskbook Level 6.5
Задание 1
Ask the user to enter their date of birth in the format year-month-day. Determine how old the user is.
Задание 2
Ask the user to enter three numbers. Check that these numbers are a Pythagorean triple: the square of the largest number must be equal to the sum of the squares of the other two.
Задание 3
Given date:
javascriptlet date = "2020-11-32";
Please check if this date is correct.
Задание 4
Given some integer:
rust35142
Sort the digits of this number. In our case, we should get the following:
rust12345
Задание 5
Given a tuple containing time in the format hours, minutes, seconds:
rust("12", "59", "01")
Check that the time is correct: hours from 00 to 23, minutes and seconds from 00 to 59.