Java 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:

javascriptString date = '2020-11-32';

Please check if this date is correct.

Задание 4

Given some integer:

java35142

Sort the digits of this number. In our case, we should get the following:

java12345