万方医学网网址:谁知道这道题怎么做?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/03 03:04:23
题目:输入任意一串字符(以‘#’结束),分别统计出大写字母,小写字母,及其他字符的个数,并将结果输出)

#include<stdion.h>
main()
{char sop;
int i,j,l;
i=0,j=0,k=0;
while(sop=getchar()!='#'
{if(sop1>='a'&&sop<='a',i++;
if(sop2>='A'&&sop<='A',j++;
if(sop!=(sop1+sop2),k++;
printf("%c"\n,i,j,k);
}

sdrftyghhjkkiKIUJHYTG123654#小写13,大写8,数字6。