C++ Taskbook Level 6.9

Задание 1

Determine how many days are left until the next Sunday. Output the result to the console.

Задание 2

Output to the console the name of the day of the week of the last day of the current month.

Задание 3

Write code that will compare the two dates below and print a message telling you which one is greater:

javascriptstd::string date1 = "2020-11-30";
std::string date2 = "2020-12-31";
Задание 4

Given a string with a number:

cpp"1234567"

Separate the triplets of digits with spaces, starting from the end of the number. In our case, we should get the following:

cpp"1 234 567"