求帮忙检查下错误啊!
输入一行字符,分别统计出其中英文字母,空格,数字和其他字符的个数。#include<stdio.h>
int main()
{
char s,a;
int letter=0,black=0,number=0,others=0,i;
gets(s);
if(a>='A'&&a<='z')
letter+=1;
else if(a==' ')
black+=1;
else if(a>='0'&&a<='9')
number+=1;
else
others+=1;
printf("%d%d%d%d",letter,black,number,others);
return 0;
}