网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序运行时,若输入labced12df<回车> 输出结果为【10】
#include <stdio.h>
main( )
{char a =0,ch;
while((ch=getchar())!=’\n’)
{if(a&2!=0&&(ch>’a’&&ch<=’z’)) ch=ch-‘a’+’A’;
a++;putchar(ch);
}
printf(“\n”);
}
参考答案
更多 “ 下列程序运行时,若输入labced12df回车 输出结果为【10】#include stdio.hmain( ){char a =0,ch;while((ch=getchar())!=’\n’){if(a2!=0(ch’a’ch=’z’)) ch=ch-‘a’+’A’;a++;putchar(ch);}printf(“\n”);} ” 相关考题
考题
下列程序运行时,若输入labcedf2df输出结果为【】。 include main(){char a=0,ch; wh
下列程序运行时,若输入labcedf2df<回车>输出结果为【 】。include<stdio.h>main(){ char a=0,ch;while((ch==getchar())!='\n'){ if(a%2!=0(ch>='a'ch<='z')) ch=ch'a'+'A';a++;prtchar(ch);}printf("\n");}
考题
有以下程序:当执行程序时,按下列方式输入数据(从第l列开始,<;CR>;代表回车,注意:回车也是一个字符]12<;CR>;34<;CR>;则输出结果是( )。A.12B.123C.1234D.12343
考题
若有以下程序执行时若输入:(其中<;Enter>;表示回车符)Fig flower is red.<;Enter>;则输出结果是A.wet is red.Fig Co is blue.B.wet is red.Fig floC.wet is red.The sky is blue.D.Fig flower is red.The sky is blue.
考题
若有以下程序执行时若输入:Fig flower is red.<;回车>;则输出结果是A.Fig flower is red.is blue.B.Fig flower is red.C.Fig floweris red.D.Fig floweris
考题
有以下程序程序运行时从第一列开始输入:abcdefg<;回车>;,则输出结果是A.abcdefgB.bcddghC.abcdefgD.bcddgh$
热门标签
最新试卷