Problems
Write a program that takes students' scores and, when a 0 is entered, divides the scores entered so far into 10-point increments and outputs the number of students in each score range. (Do not output scores with no scores.) The maximum number of students is 100.
Example #1
63 80 95 100 46 64 88 0
100 : 1 person
90 : 1 person
80 : 2 person
60 : 2 person
40 : 1 person
Example #2
45 60 92 9 88 47 40 9 97 6 84 18 18 23 32 0
90 : 2 person
80 : 2 person
60 : 1 person
40 : 3 person
30 : 1 person
20 : 1 person
10 : 2 person
0 : 3 person
Source
자기주도C언어프로그래밍