C++ Taskbook Level 6.4
Задание 1
Ask the user to enter an integer via the console. Get the factorial of the entered number.
Задание 2
Ask the user to enter a date in the format year-month-day. Check if they entered the value in the correct format.
Задание 3
Determine how many days are left until the New Year.
Задание 4
Given a string containing time in the format hours:minutes:seconds:
cpp"12:59:59"
Check that the time is correct: hours from 00 to 23, minutes and seconds from 00 to 59.
Задание 5
Given a string:
cpp"1 22 333 4444 22 5555 1"
Remove from this string all substrings in which the number of characters is more than three. In our case, we should get the following:
cpp"1 22 333 22 1"