The program accepts 10 numbers then it will arrange the numbers in ascending order then it will count the mode of the 10 numbers inputted. When we say mode, it is the number most frequently used. For example there are 10 numbers: 1,2,1,1,1,4,5,2,1,9 --> the most frequent number is 1 because its number of occurrence is 5, so the mode is 1.

This is where the code of the getting the mode is inserted:

for x = 0 to 9
list1.additem num(x) --> This is where the 10 numbers are displayed in ascending order
~~~~CODES TO GET THE MODE/COUNT THE NUMBER OF OCCURRENCE OF EACH NUMBER~~~~
next x
~~~~CODES TO DISPLAY THE MODE~~~~

I don't know the codes for counting the number of occurrence of every number being entered. Please help me guys!

THANK YOU IN ADVANCE