.题目:输入一字符串(换行为结束标志)统计其中数字、空格和其它字符出现的次数。请填空。
-------------------------------------------------------*/
#include<stdio.h>
void main()
{ char c;
int digit=0,blank=0,other=0;
while((c=getchar())!='\n')
{
/***********SPACE***********/
if(【?】) digit++;
else if(c==' '||c=='\t')
blank++;
/***********SPACE***********/
else【?】;
}
printf("digit=%d,blank=%d,other=%d\n",digit,blank,other);
}