PHP Taskbook Level 3.4

Задание 1

Print to the console all numbers in the range from 10 to 1000 whose first digit is even.

Задание 2

Given some array, for example, like this:

php[1, 2, 3, 4, 5, 6]

Swap pairs of elements in this array:

php[2, 1, 4, 3, 6, 5]