55 of 100 menu

C++ Taskbook Level 6.5

Ask the user to enter their date of birth in the format year-month-day. Determine how old the user is.

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.

Given date:

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

Please check if this date is correct.

Given some integer:

35142

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

12345
enru