Open a file named "integers.dat" and keep track of the following information:
the first integer value
the number of times this integer appears in the file
the number of times other integers appear in the file
Output the three pieces of information to the console (stdout)
For example, if "integers.dat" contains the following integers:
14 27 39 11 2 23 14 90 3 14
I would expect to see the following result in the console window:
14 3 7
the first integer value
the number of times this integer appears in the file
the number of times other integers appear in the file
Output the three pieces of information to the console (stdout)
For example, if "integers.dat" contains the following integers:
14 27 39 11 2 23 14 90 3 14
I would expect to see the following result in the console window:
14 3 7