16 of 100 menu

Java Taskbook Level 2.6

Given an array of numbers:

int[] arr = {-1, 2, -3, 4, 5, 11};

Find the sum of those elements of this array that are greater than zero and less than ten.

Given an array of integers:

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

Print to the console the elements of this array that are even numbers.

Given an array of integers:

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

Print the elements of this array to the console up to the first zero.

azbydeenesfrkakkptruuz