info@onlinelearningcenter.in (+91) 7 999 01 02 03 Get started with 45 Hours of Free course right now 

Find the second lowest and highest numbers in a given array.

Swapnil M
4 Posts

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
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments