#include #include int main() { unsigned int w = 0; /* counter */ int c; Space: c = getchar(); if (c == EOF) goto End; if (isspace(c)) goto Space; ++w; Word: c = getchar(); if (c == EOF) goto End; if (isspace(c)) goto Space; goto Word; End: printf("%u\n", w); return 0; }