• 2022-11-04
    2.输入若干字符,分别统计数字字符的个数、英文字母的个数,当输入换行符时输出统计结果,程序运行结束。 #include [stdio.h] void main() { int s1=0,s2=0; char ch; while(( )!='\n') { if( ) s1++; //s1:统计数字字符的个数 if( ) s2++; //s2:统计英文字母的个数 } printf("%d,%d\n",s1,s2); }