>>875
今一わからんけど、こういうこと?
あと、0〜99ってなってるけど0〜999の間違い?

#include <stdio.h>
int main(void)
{
int i, hist[10] = { 0 };
while (scanf("%d", &i) == 1) {
if (i >= 0 && i <= 999) {
++hist[i / 100];
}
}
for (i = 0; i < 10; ++i) {
printf("%d-%d: %d\n", i * 100, i * 100 + 99, hist[i]);
}
return 0;
}