Java Taskbook Level 6.7

Задание 1

Ask the user to enter their phone number. Check if they entered the correct value.

Задание 2

Ask the user to enter ten numbers. Store the resulting numbers in an array, then take the average of these numbers and print the result.

Задание 3

Output to the console the dates of all weekends of the current year in the format year-month-day.

Задание 4

Given a number:

java123456

Find the sum of the pairs of digits of this number. In our case, we mean the following:

java12 + 34 + 56