a=1; switch a case 3|4 disp('ok') case {1,2} disp('perfect') otherwise disp('no') end
举一反三
- 下列程序的输出结果是( )。a=1;switch a case 3|4 disp('perfect') case {1,2} disp('ok') otherwise disp('no')end? ok|perfect|no|2
- The output of the following program is ( ). a=1; switch a case 3|4 disp('perfect') case {1,2} disp('ok') otherwise disp('no') end A: ok B: perfect C: no D: 2
- 下列程序的输出结果是( )。a=1;switch a case 3|4 disp('ok') case {1,2} disp('perfect') otherwise disp('no')end A: ok B: perfect C: no D: 2
- 中国大学MOOC: 下列程序的输出结果是( )。a=1;switch a case 3|4 disp(ok) case {1,2} disp(perfect) otherwise disp(no)end
- 下列程序的执行结果是()。switch 2 case {1,2} disp('perfect') case {1,2} disp('ok') case [1,2] disp('yes') otherwise disp('no') end A: perfect B: ok C: yes D: no