Description
输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的个数。
Input
一行字符
Output
统计值
Sample Input
aklsjflj123 sadf918u324 asdf91u32oasdf/.’;123
Sample Output
23 16 2 4
#include<stdio.h>
int main(){
char ch;
int en = 0;
int num = 0
该博客介绍了一道C语言编程题目,要求读入一行字符并统计其中英文字母、数字、空格以及其他字符的个数。示例输入和输出分别给出了一串包含混合字符的字符串及其计数结果。
Description
输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的个数。
Input
一行字符
Output
统计值
Sample Input
aklsjflj123 sadf918u324 asdf91u32oasdf/.’;123
Sample Output
23 16 2 4
#include<stdio.h>
int main(){
char ch;
int en = 0;
int num = 0
3195

被折叠的 条评论
为什么被折叠?