write a no in yhe array and find highest and lowest no. present in the array...??
tell me fast
Answers
Answered by
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
Math,
4 months ago
Biology,
4 months ago
History,
4 months ago
English,
9 months ago
Chemistry,
9 months ago
Political Science,
1 year ago
India Languages,
1 year ago
Math,
1 year ago