字符的输入与输出
main(){
int letters=0,blanks=0,digits=0,others=0;
char c;
printf("Please enter the sign:");
scanf("%c",&c);
if(c>='a'&&c<='z'||c>='A'&&c<='Z')
letters++;
else if(c=' ')
blanks++;
else if(c>='0'&&c<='9')
digits++;
else
others++;
scanf("%c",&c);
printf("letters=%d,blanks=%d,digits=%d,others=%d",letters,blanks,digits,others);
}
如何实现字符的输入与输出呢?请指出其中的错误.谢谢了啊