14 of 100 menu

Java Taskbook Level 2.4

Given an array of numbers:

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

Find the sum of the square roots of the elements of this array.

Given an array of numbers:

int[] {1, 2, 3, 4};

Double each element of this array:

int[] {2, 4, 9, 8};

Given an array:

int[10] arr;

Use a loop to fill this array with integers from 10 to 1.

enru