#include #include int main ( ) { int wc; int c = 0; for (wc=1; ; wc++) { /* Skip past leading white space. */ while ((c != EOF) && isspace(c) ) { c = getchar ( ); } /* Read through characters of the word. */ while ((c != EOF) && !isspace(c) ) { c = getchar(); } } printf ("%d\n", wc); return 0; }