#include#include#includevoid main(){ int i,cnt=0; char s[100]; printf("please input a string:\n"); scanf("%s",s); for(i=0;i if(!isalpha(s[i]) && i!=0) cnt++; printf("the string has %d word!\n",cnt);}