+ 3
declare array
for each element, get a random number and store it in the array element
for each element, print the array element
save the first element as the smallest
for each of the other elements, if this element is the smaller than are saved one, save this one
print the element we found
save the first element as the largest
for each of the other elements, if this element is the larger than are saved one, save this one
print the element we found
If you are really a programmer, you can do it all with one loop. Post your finished code here so I can see how well you can follow instructions.