Question 7:
(1 mark, file to be edited: Q7.c)
The program allows users to enter an array of n real numbers from the keyboard.
Then, continue to enter a real number k.
The program prints to the screen the elements of the array with values other than k in descending order. For each printed element, get 1 digit after the decimal point.
Below is an example:
Enter n = 6, array = {2.2, 3.5, 4.11, 5.5, 4.11, 8), k = 4.11
5 of 5
Paper No: 2
6 2.2
3.5
4.11
5.5
4.11 8
Zoom
4.11
OUTPUT:8.0 5.5 3.5 2.2
Press any key to continue
+ 100%
Close