結果 : write ac program to find the maximum and minimum element in an array using a for loop