Weegy: To find the largest and smallest number in an array, take the first value of array as largest and smallest number initially, and test against all the values of array to find the appropriate values.
Declare Number As Integer
Declare X, Largest, [ [ Smallest, Count As Integer
Set Count = 0
Write "Enter a number:"
While Number != 0
Set Number[Count] = X
// Take the first value of array as smallest and largest initially
IF ... (More)