
-----------------------------------
Vertico
Sun Sep 16, 2007 7:57 pm

Count error. Basic starting program.
-----------------------------------
Schools in and I could use some help. I have never touched C before so forgive me if I have done something stupidly wrong.

Basically its a math error that I cant seem to figure out. I know something is wrong with the count variable. It jumps up to 50 for some reason I am unaware of. Can someone help me out here, I am pretty new to C so I assume I just declared something wrong perhaps? Or perhaps its just the compiler? I am useing VS2005



/*Displays a-z on the left hand side, and a running average of the letters to the right. When the left
hand letter reaches B it will display the average as a number instead of a letter.*/
#include
#include

int main (void)
{
	char letter = 'a';
	char average = 'a';
	char count = '2';

	while(letter