阿摩線上測驗 登入

試題詳解

試卷:100年 - 2011年3月计算机等级考试— 二级—《C语言 》#13758 | 科目:计算机等级考试— 二级—《C语言 》

試卷資訊

試卷名稱:100年 - 2011年3月计算机等级考试— 二级—《C语言 》#13758

年份:100年

科目:计算机等级考试— 二级—《C语言 》

19)有以下程序   #include   main)   { int s;    scanf"%d",&s);    whiles>0)    { switchs)    { case 1:printf"%d",s+5);    case 2:printf"%d",s+4); break;    case 3:printf"%d",s+3);    default:printf"%d",s+1);break;     }     scanf"%d",&s);    }   }   运行时,若输入1 2 3 4 5 0<回车>,则输出结果是   
(A)6566456
(B)66656
(C)66666
(D)6666656
正確答案:登入後查看