Challenge: Array of Integers

Test yourself and implement what you have learned so far in this challenge.

Problem Statement

You have to create and populate an array of integers within a given range. Multiply each element in the range with 3. The elements of the final array should only contain even numbers.

Input

The input is the lower bound minRange and upper bound maxRange of the range which you will use to populate the array.

minRange and maxRange have already been declared for you.

Output

The output will be the populated finalArray.

Sample Input

(1, 5)

Sample Output

Array(6, 12)

Test Yourself

Write your code in the given area. Try the exercise by yourself first, but if you get stuck, the solution has been provided. Good luck!

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy