admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Find Max and Min element in an array

Suraj Ghimire
13 Posts

Given an array of N, Find the maximum and minimum number present in an array.

 

Eg:

arr= {5,1,2,4,3}

 

Output:

max: 5

min:  1

 

Published By : Suraj Ghimire
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin