Java Taskbook Level 2.1

Задание 1

Given an array of integers:

javaint[] arr = {1, 2, 3, 4, 5};

Print the elements of this array to the console.

Задание 2

Given an array of strings:

javaString[] arr = {"ab", "cd", "ef"};

Print the first characters of the elements of this array to the console.

Задание 3

Given some integer:

javaint num = 12345;

Find the sum of all its even digits.

Задание 4

Given some integer:

javabyte num = 12;

Find the factorial of this number.