阅读下列FORTRAN程序:DIMENSIONM(4,3)DATEM/-10,12,24,11,20,-15,61,78,93,30,44,-45/N=M(1,1)DO10I=1,4DO10J=1,3IF(M(I,J).LT.N)THENN=M(I,J)K
阅读下列FORTRAN程序:DIMENSIONM(4,3)DATEM/-10,12,24,11,20,-15,61,78,93,30,44,-45/N=M(1,1)DO10I=1,4DO10J=1,3IF(M(I,J).LT.N)THENN=M(I,J)K1=IK2=JENFIF10CONTINUEWRITE(*,‘(2x,314)’)N,K1,K2END程序运行后的输出结果是()。
A.93,3,1
B.-10,1,1
C.-45,4,3
D.78,3,2
正确答案:C
数组元素的值分别为:M(1,1)=-10,M(2,1)=-12,M(3,1)=-24,M(4,1)=11,M(1,2)=-20,M(2,2)=-15,M(3,2)=61,M(4,2)=78,M(1,3)=93,M(2,3)=30,M(3,3)=44,M(4,3)=-45,最后一次循环:N=M(4,3)=-45,K1=4,K2=3
★《布宫号》提醒您:民俗信仰仅供参考,请勿过度迷信!
本文经用户投稿或网站收集转载,如有侵权请联系本站。