11、以下程序段运行后,输入:ABCdef,输出应为
char ch;
while ((ch = getchar ()) != '\n')
{
if (ch >= 'A' && ch <= 'Z')
ch = ch + 32;
else if (ch >= 'a' && ch <= 'z')
ch = ch - 32;
cout << ch;
}(5 分)
A.ABCdef
B.abcdef
C.ABCDEF
D.abcDEF
11、以下程序段运行后,输入:ABCdef,输出应为
char ch;
while ((ch = getchar ()) != '\n')
{
if (ch >= 'A' && ch <= 'Z')
ch = ch + 32;
else if (ch >= 'a' && ch <= 'z')
ch = ch - 32;
cout << ch;
}(5 分)
A.ABCdef
B.abcdef
C.ABCDEF
D.abcDEF
Scratch3.0 全国青少年软件编程等级考试 Python Scratch图形化一级 Scratch图形化四级 Scratch图形化三级 Scratch图形化二级 电子学会