java program to find largest and smallest number in an array

preview_player
Показать описание
Logic:
1) Create (Declare) and initialize an array.
3) Assign first element of an array to both largest and smallest variable.
4) Use the for loop to reach to the all elements of the array.
5) Under for loop use if statement to check which element is larger or smaller.
Рекомендации по теме
Комментарии
Автор

You're saving my grade, dude. Thanks a bunch.

michaeltsang