7-3-3 统计大写辅音字母 (15分)

//林威好帅
#include
int main()
{
int i=0,t,count=0;
char d,a[80];
d=getchar();
while(d!=’\n’){
a[i]=d;
d=getchar();
i++;
}
for(t=0;t if(a[t]>‘A’&&a[t]<=‘Z’){
if(a[t]!=‘A’&&a[t]!=‘E’&&a[t]!=‘I’&&a[t]!=‘O’&&a[t]!=‘U’){
count++;
}
}
}
printf("%d",count);
return 0;
}

你可能感兴趣的:(PTA,C语言)