Flowchart to find maximum number in an array and minimum number in an array.

maxmin in a list of integers using array

Enter size of the array: 5
 Enter  elements in the array 
  10  20  -9  30  -98 
maximum element =  30
minimum element = -98