Press any key to continue
Question 5:
(1 mark, file to be edited: Q5.c)
The program allows the user to input an integer array of 'n' elements. With 'n' and the value of the elements entered from the keyboard.
The program prints to the screen that the elements are sorted in descending order of odd numbers first and even after, with each printed element on a line.
An example of how the program runs is as follows:
4 of 4
Paper No: 10
Enter: n = 6; elements: 10, 9, 8, 5, 7, 3
6
10 9 8 5 7 3
OUTPUT:
9
7
5
Zoom
+ 100%
Close