//Name: Christine Cloma //Date: March 16, 2013 //Purpose: To design a program that count, how many words are there in an input string. #include #include #include void main(){ clrscr(); char str[90]; int i = 0; int space = 0; int word = 0; printf("Please Enter Strings: "); gets(str); for(i=0;i=65 && str[i]<=90) || (str[i]>=97 && str[i]<=122))){ space = 0; word++; } if(str[i]==' '){ space = 1; } } printf("Number of Words: %d",word); getch(); }