2024-06-10 20:33:17
代码文本:
#include "
int main(int argc,char *argv[]){
char s[25];
int w;
printf("Please enter a text...\n");
w=0;
while(scanf("%24s",s)==1 && *s!='#' && s[1]!='#')
if(*s>='a' && *s<='z' || *s>='A' && *s<='Z')
w++;
printf("A total of %d word(s)\n",w);
return 0;
}
2024-06-10 13:08:21