Exercise 1: Extract Even Elements from an Array
Extract the even numbers from an array.
We'll cover the following
Problem statement
Extract the even integers from the given array.
Example
input_array contains [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Output is [2, 4, 6, 8, 10]
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy