今天学习了getchar()函数和while类型
#include<stdio.h>
int main()
{
int blank=0,digit=0,other=0;
char ch;
while((ch=getchar())!='\n'){
if(ch>='0'&&ch<='9')
digit++;
else if(ch==' ')
blank++;
else
other++;
}
printf("blank = %d, digit = %d, other = %d\n",blank,digit,other);
return 0;
}