#include<stdio.h>
main()
{
int n=0;
printf("输入任意个数的字符: ");
while(getchar()!=' ')n++;
printf("%d",n);
}