Image

I have a school assignment for my CIS class where I have to write a script that uses a "while" loop to allow a user to enter 10 numbers and displays the largest number, the smallest number and the average of all the numbers at the end.

I'm able to write the loop and get the average number, but I have no idea how to get the largest and smallest numbers to show up in a document.writeln.

Any suggestions, or help would be greatly appreciated.