题目内容

输入一行字符,分别统计出英文字母、空格、数字和其他字符的个数。#includemain(){int x=0,y=0,z=0,t=0;char a;printf("请输入一行字符:\n");while(()){if((a>='A'&&a<='Z')||(a>='a' &&a<='z'))x++;else if(a==32)y++;else if(())//判定是否为数字z++;elset++;}printf("字母个数为%d,空格个数为%d,数字个数为%d,其他字符为%d\n",());}

查看答案
更多问题

[音频][音频]

A. Having no ice-cold lemon juice to ease the crazy heat.
B. Awful job, hot weather and working outside.
C. Having to pay his rent immediately.
D. Graduating from college without his own business.

[音频]

A self-made millionaire.
B. A gardener.
C. A professional dancer.
D. A senior clerk.

[音频]

A. Supportive.
B. Sarcastic.
C. Indifferent.
D. Worried.

[音频]

A. Playing video games for a living.
Becoming a pilot.
C. Working as a gardener.
D. Becoming a ballroom dancer.

答案查题题库