exists between any two printed indexes.
Below is an example when 'n' = 6; array = {6, 8, 4, 5, 7, 9); sum = 15
5 of 5
Paper No: 3
6
684-579
15
OUTPUT:
5 Press any key to continue
Question 8:
(1 mark, file to be edited: Q8.c)
Your program allows the user to enter an integer array of 'n' elements from the keyboard.
The program swaps the places of the first largest and smallest even numbers with each other.
Below is an example:
Enter n = 7: array = {5.2.8.0.9.6.201
+ 100%
Zoom
Close