C++ 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:

javascriptstd::string date = "2020-11-32";

Please check if this date is correct.

Задание 4

Given some integer:

cpp35142

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

cpp12345