有以下程序:程序运行后的输出结果是( )。
main()
{ int k=5 ,n=0;
do
{ switch(k)
{ case 1 :
case 3 :n+=l;k--;break;
defalut :n=0;k--;
case 2 :
case 4 :n+=2;k--;break :
}
printf("%d" ,n);
}while(k>0&&n<5);
}
B
暂无解析
执行以下程序,输入”93python22”,输出结果是:
w=input(‘请输入数字和字母构成的字符串:’)
forxinw:
if'0'<=x<='9':
continue
else:
w.replace(x,'')
以下程序的输出结果是:
s=0
deffun(num):
try:
s+=num
returns
except:
return0
return5
print(fun(2))