#include "stdio.h"void main(){ char *p,a[80]; int i,n=0; gets(a); for(p=a;*p!='\0';p++) if(*p>='a'&&*p<='z') n++; printf("%d\n",n);}以上回答你满意么?