Company: Deloitte_18oct
Difficulty: medium
First Occurring Even Number Problem Description You are given an array of size N. Write a program to find and print the first occurring even number from the given array. Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings while reading the input or while printing, as these contribute to the standard output. Input Format The first line of input contains a positive number N representing the size of the array. The second input line contains N numbers representing the array elements separated by a single whitespace. Output Format The output should display the first occurring even number present in the array. Examples Example 1: Input: 5 11 15 82 22 2 Output: 82 Explanation: The array has 5 integers, and the first even number is 82. Final Result = 82 Constraints 1 Array Elements The array should contain at least one even number.