Hey all!

I am writing a code in C to find the mode of an array of numbers. I understand that this has been solved before but I am only allowed to use certain command terms in my program.

I am allowed to use loops, if and while statements, flags.

If I understand it correctly I need one loop that compares each term in the array to the other terms and stores how many times each number appears in each array.

So:

Input: A list of numbers (non integers too)

Output: the mode of the list of numbers. (If two numbers appear the same amount of times display no mode)

I already have the typing in of the numbers done, so I need the loop to check the array for how many times each number appears, store that in another array. Another loop to check the last array to see which number if the biggest and what it corresponds to.

Thank you so much!