I am using the Stephen G. Kochan C textbook. A sample program is troublng with executing. Here's the code.

Code:
#include <stdio.h>

int main () {
	int ratingCounters[11], i, responce;

	for ( i = 1; i <= 20; ++i ) 
		ratingCounters[i] = 0;

	printf("Enter your responses\n");

	for ( i = 1; i <= 20; ++i ) {
		scanf("%i", &responce);

		if ( responce < 1 || responce > 10 )
			printf("Bad responce: %i\n", responce);
		else
			++ratingCounters[responce];
	}

	printf("\n\nRating    Number of Responces\n");
	printf("------ -------------------\n");

	for ( i = 1; i <= 10; ++i )
		printf("%4i%14i\n", i, ratingCounters[i]);

	return 0;
}
I am sick of the blinking cursor on xTerminal.