I am trying to make a program in Small Basic in which the user has to enter multiple numbers until the user enters "0" or enters nothing. Then the program has
to show the largest and the smallest number which the user has entered. But the program also has to show all the numbers entered in the opposite order. For example if the user enter: *3,12,8.** *The
program has to show: *8,12,3.** *Also the program doesn't know the amount of numbers the user will enter!

**My question is how am i able to show the numbers entered in opposite order?**

I was able to show the largest and smallest numbers but not the numbers in opposite order. I know that i have to use an array but i haven’t been succesfull.

This is what i have now:

TextWindow.Write("Enter
a number: ")

varNumber
= TextWindow.ReadNumber()

varMax
= 0

varMin
= varNumber

**While** varNumber
<> 0

**If** varNumber
> varMax **Then**

varMax
= varNumber

**EndIf**

**If** varNumber
< varMin **Then**

varMin
= varNumber

**EndIf**

TextWindow.Write("Enter a number: ")

varNumber
= TextWindow.ReadNumber()

**EndWhile**

TextWindow.WriteLine("The
largest number is "+varMax)

TextWindow.WriteLine("The
smallest number is "+varMin)