Question 3:
(2 marks)
The given file Q3.c already contains statements to input data for the integer 1-D array. You should write statements to print out the sum of even array elements.
Notes:
- You can create new function(s) if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
Input: n = 5
Array: 235 47
After processing: 6
Output for marking:
OUTPUT:6
Question 4:
(2 marks)
Zoom
+ 100%
Close