Question: java 5) Consider the following array and then answer the question that follows: (5 points) (CLO 2) int[] Q5Array = {1,7,8,90,4,55,5,66,2}; Write a loop statement

5) Consider the following array and then answer the question that follows: (5 points) (CLO 2) int[] Q5Array = {1,7,8,90,4,55,5,66,2}; Write a loop statement to calculate and display the sum of even numbers greater tha 5. In other words, the loop should produce the following output: Sum=164 Note: Your loop should always work even if the content of the array is changed. Write your loop in this box. int[] Q5Array = {1,7,8,90,4,55,5,66,2}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
