这是平时的练习,我已经做了半个小时了,还是一直显示有错误,不知道怎么写
#include<stdio.h>
int main(void)
{
int e=0,t=0;
char c;
while((c=getchar())!='\n'){
if(c>='a'&&c<='z')
e++;
else if(c>='A'&&c<='Z')
t++;
}
printf("%d %d ",t,e);
return 0;
}