This is a simple word counters I've been made, using C language. Very useful to count your writing assignment, when you have to write essay with xxx numbers, so you can know your progress~ Run it on C compiler~
Hope it helps!

Hope it helps!

int main(void)
{
int tot=1;
char word;
printf("Type your text here. Press Enter to count the words.\n");
do
{
scanf("%c",&word);
if(word==32) tot=tot+1;
}
while(word!=10);
printf("Word counted: %i",tot);
return 0;
}
No comments:
Post a Comment