The program is to find the minimum and the maximum element of the array can be solved by two methods. This program can be practically used.
For example, a teacher has an array of marks of students and needs to declare the topper of the class. So the given program will easily give the teacher maximum marks in the array.
Program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer