Computer Science, asked by student22235, 6 months ago

write a no in yhe array and find highest and lowest no. present in the array...??
tell me fast​

Answers

Answered by shawrishav765
1

Answer:

Explanation:

nput the array elements.

Initialize small = large = arr[0]

Repeat from i = 2 to n.

if(arr[i] > large)

large = arr[i]

if(arr[i] < small)

small = arr[i]

Print small and large

Similar questions