#include <stdio.h> #include <stdlib.h> int main(void) { int num, i; int count[10] = {0}; for (num = 0; num < 100 ; num++) { scanf("%d", &num); if (num == 0 ) break; count[num / 10]++; } for (i = 0; i < 10; i++) { if (count[i] > 0) { printf("%d : %d개 \n", i, count[i]); } } system("pause"); return 0; }