• 2022-05-29 问题

    中国大学MOOC: 下列程序的输出结果是( )。a=1;switch a case 0|4 disp(perfect) case {1,2} disp(ok) otherwise disp(no)end

    中国大学MOOC: 下列程序的输出结果是( )。a=1;switch a case 0|4 disp(perfect) case {1,2} disp(ok) otherwise disp(no)end

  • 2021-04-14 问题

    A=[1,2,3;4,5,6;7,8,9;10,11,12] s=0; for m=A s=s+m; end disp(s)

    A=[1,2,3;4,5,6;7,8,9;10,11,12] s=0; for m=A s=s+m; end disp(s)

  • 2021-04-14 问题

    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('ok') case {1,2} disp('perfect') otherwise disp('no') end

  • 2021-04-14 问题

    求分段函数的值,正确的程序是(;;;;; )。<img src="http://edu-image.nosdn.127.net/F092417E3F0EA5BFC3C0B8532CAE32F7.jpg?imageView&thumbnail=890x0&quality=100" />? x=input('x=:');<br >y=(x+10)*(x&gt;0)+(x-10)*(x&lt;=0);<br >disp(y)|x=input('x=:');<br >y=x+10;<br >if x&lt;=0<br >;;; y=x-10;<br >end<br >disp(y)|x=input('x=:');<br >if x&gt;0<br >;;; y=x+10;<br >else<br >;;; y=x-10;<br >end<br >disp(y)|x=input('x=:');<br >if x&gt;0<br >;;; y=x+10;<br >elseif x&lt;=0<br >;;; y=x-10;<br >end<br >disp(y)

    求分段函数的值,正确的程序是(;;;;; )。<img src="http://edu-image.nosdn.127.net/F092417E3F0EA5BFC3C0B8532CAE32F7.jpg?imageView&thumbnail=890x0&quality=100" />? x=input('x=:');<br >y=(x+10)*(x&gt;0)+(x-10)*(x&lt;=0);<br >disp(y)|x=input('x=:');<br >y=x+10;<br >if x&lt;=0<br >;;; y=x-10;<br >end<br >disp(y)|x=input('x=:');<br >if x&gt;0<br >;;; y=x+10;<br >else<br >;;; y=x-10;<br >end<br >disp(y)|x=input('x=:');<br >if x&gt;0<br >;;; y=x+10;<br >elseif x&lt;=0<br >;;; y=x-10;<br >end<br >disp(y)

  • 2022-05-29 问题

    下列程序的执行结果是()。switch 2 case {1,2} disp('perfect') case {1,2} disp('ok') case &#91;1,2&#93; disp('yes') otherwise disp('no') end A: perfect B: ok C: yes D: no

    下列程序的执行结果是()。switch 2 case {1,2} disp('perfect') case {1,2} disp('ok') case &#91;1,2&#93; disp('yes') otherwise disp('no') end A: perfect B: ok C: yes D: no

  • 2022-05-29 问题

    下列程序的输出结果是( )a=1;switch a case 01 disp('one') case {1,2} disp('two') case 3 disp('three') otherwise disp('four')end A: one B: two C: three D: four

    下列程序的输出结果是( )a=1;switch a case 01 disp('one') case {1,2} disp('two') case 3 disp('three') otherwise disp('four')end A: one B: two C: three D: four

  • 2022-05-29 问题

    下列程序的输出结果是( )a=1;switch a case 0&amp;1 disp('one') case {1,2} disp('two') case 3 disp('three') otherwise disp('four')end。 A: four B: three C: two D: one

    下列程序的输出结果是( )a=1;switch a case 0&amp;1 disp('one') case {1,2} disp('two') case 3 disp('three') otherwise disp('four')end。 A: four B: three C: two D: one

  • 2022-05-29 问题

    中国大学MOOC: 下列程序的输出结果是( )。a=1;switch a case 3|4 disp(ok) case {1,2} disp(perfect) otherwise disp(no)end

    中国大学MOOC: 下列程序的输出结果是( )。a=1;switch a case 3|4 disp(ok) case {1,2} disp(perfect) otherwise disp(no)end

  • 2021-04-14 问题

    下列程序的输出结果是( )。a=1;switch a case 3|4 disp('perfect') case {1,2} disp('ok') otherwise disp('no')end? ok|perfect|no|2

    下列程序的输出结果是( )。a=1;switch a case 3|4 disp('perfect') case {1,2} disp('ok') otherwise disp('no')end? ok|perfect|no|2

  • 2022-05-29 问题

    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

    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

  • 1 2 3 4 5 6 7 8 9 10