I need help in coding the following practice problem using the fundamentals of C Programming Language.
Without the use of arrays, write a program that asks for values from the user and find out which number was entered the most number of times (mode) and how many times this number was entered (frequency). Stop asking for values once a -1 has been entered. Assume that the numbers entered are positive and in increasing order and there is only one mode in the given inputs.
ex. If the following numbers were entered:
1, 2, 2, 2, 3, 3, 6, 6, 7, 7, 7, 7, -1
The mode is 7 and its frequency is 4
ex. If the following numbers were entered:
2, 3, 3, 3, 4, 5, 5, 7, 8, 8, 8, 8, 8, -1
The mode is 8 and its frequency is 5
I can only use #Include and nothing else.
Thanks