☑Kizspy.me
Zoom
Below is an example when user enter R = 5
5
OUTPUT:
1 2 3 4 5
1
1
1
55555
5
5
5
1 2 3 4 5
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}
+ 110%
Close