Find Max and Min Element of an array

preview_player
Показать описание
Ques: find the minimum & maximum element of an array (In Java)
input: Enter Size of the array: 6, Enter element of the array: {5,8,332,45,232,3545}
output: Maximum element: 3545 Minimum element: 5
input: Enter Size of the array: 5, Enter element of the array: {2,22,34,5,2}
output: Maximum element: 34 Minimum element: 2
Рекомендации по теме