hello im doin a project and the last part deals with array please help if u can....

If I want an array to print out for example:
grades in the range of : 0-24, 25-49, 50-74, and 75-99 i know how to if else the grades and counter them reading from an infile. How do i put that in an array that will print it out like so.

range # of students
0-24 3
25-49 4
50-74 1
75-99 2

thanks to all for looking.