题目描述
输入一行字符,分别统计其中英文字母、空格、数字和其他字符的个数,分行输出该结果。
输入描述
一行字符,可以包含字母、数字、空格、标点等符号
输出描述
分行输出大小写英文字母、空格、数字和其他字符的个数。
如:
characters=字母个数
spaces=空格个数
numbers=数字个数
others=其他字符个数
输入样例
My input123 @%chars.
输出样例
characters=12
spaces=2
numbers=3
others=3
#include <stdio.h>
int main()
{
int a, b, c, d;
char ch;
ch = getchar();
a = 0;
b = 0;
c = 0;
d = 0;
while (ch != '\n')