Write a program to find the second lowest and highest numbers in a given array.
Ex: 1:
Array elements: 9 122 12 1 Second lowest number of the said array: 9 Second highest NUmber of the said array: 12
Ex: 2 Array elements: 9 12 12 1 Second lowest number of the said array: 9 Second highest NUmber of the said array: 9
Ex: 3 Array elements: 5 5 9 9 12 12 1 Second lowest number of the said array: 5 Second highest NUmber of the said array: 9
Ex: 4 Array elements: 0 0 9 9 9 9 9 Second lowest number of the said array: 9 Second highest NUmber of the said array: 9
Published By : Swapnil M