New course! Every coder should learn Generative AI!
Try a free lesson0
How to find the greatest and smallest number in an array of numbers???
1 Answer
0
Step one: sort the array (hint: bubble sort, one of the easiest)
The first number is smallest, last is greatest.