填空题
【说明】
以下程序为求行列式X(5,5)的值S。
【Visual Basic代码】
Private Function col ( byval x ( 5,5 ) as integer ) as long
dim fesult as long
dim temp as long
dim I as integer
dim j as integer
dim k as imeger
result = 0
for I = to 5
{{U}}(1) {{/U}}
for j = 1 to 5
if I+j>6 then
k= ( 1+j ) mod 5
else
k=1
endif
temp=temp*x ( k,j )
{{U}} (2) {{/U}}
result={{U}} (3) {{/U}}
{{U}}(4) {{/U}}
{{U}}(5) {{/U}}
End function
1、
【正确答案】
1、temp=1 (2) next I (3) result+temp (4) next I (5) col=result