FtSan


私信TA

用户名:ft1075576

访问量:56801

签 名:

等  级
排  名 120
经  验 7574
参赛次数 0
文章发表 24
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

TA的其他文章

#include<stdio.h>
int main()
{
   int c, space ,number ,character , other;
	space = number = character = other =0;
	while( (c = getchar())!='\n')
	{
		if( c == ' ')
		{
			space++;
		}
		else if( c >='0'&& c <='9')
		{
			number++;
		}
		else if ( (c >='a' && c <= 'z') || ( c >= 'A' && c <= 'Z') )
		{
			character++;
		}
		else
		{
			other++;
		}
		
	}
	printf("%d %d %d %d",character,space,number,other);
    return 0;
}


 

0.0分

7 人评分

  评论区