☑Kizspy.me
30
Question 3:
(2 marks)
The given file Q3.c already contains statements to input data for the one-dimensional array of
integers. You should write statements that print out the sum of the odd numbers in the array.
Notes:
-Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
Zoom
Sample input and output:
Input:
How many elements do you want to enter into the integer array? [1..100] 5
a[0]=3
a[1]=4
a[2]=2
a[3]=8
+ 100%
Close