阅读下列FORTRAN程序: INTEGER S(2,4) ,A(2) DATA S/4*1,4*2/ CALL SUB(S,2,4,A) M=A(1) -A(2) WRITE(*,*) M END SUBROUTINE SUB(S,N,K,A) INTEGER S(N,K),A(N) DO 20 I=1,N A(I)=0 DO 10 J=1,K 10 A(I)=A(I)+S(I,J) A(I)=A(I)/K 20 CONTINUE END 执行上述程序后,输出的M值为( )。
A.
0
B.
1
C.
2
D.
3
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】课后练习 On a Friday night, a poor young artist stood at the gate of the New York railway station, playing his violin. The music was so great that many people stopped to put some money into the hat of the...
【简答题】Frederic Chopin was born in March 1810 near Warsaw in Poland( 波兰 ). He was one of the greatest musicians in the world. In 1831, he went to Paris. No people but he could play the piano very well. At th...