Kizspy.me
Press any key to continue
Question 5:
(1 mark, file to be edited: Q5.c)
Your program allows users to enter an array of N integers (0 <N< 10). Calculate the sum of all odd
numbers. If no odd numbers exist, print "No odd numbers".
Below is an example:
Test case 1: Enter n=4, array={2, 5, 8, 3}
4 of 4
Paper No: 3
4
Zoom
2583
OUTPUT:
8
Press any key to continue
+ 100%
Close