for i=1 to 4 x=4 for j=1 to 3 x=3 fork=1 to 2 x=x+6 next k next j next i msgbox x 为什么结果是15

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 08:18:34
for i=1 to 4 x=4 for j=1 to 3 x=3 fork=1 to 2 x=x+6 next k next j next i msgbox x 为什么结果是15
xҿ 0WݡłJ[lK! j_0!n#/Iu yB_I\Pl@.(ެ6PM9cV00>pߗp qK]4i5;:-&bt:*u4A2 T0$cH!C2 V0,cX&])

for i=1 to 4 x=4 for j=1 to 3 x=3 fork=1 to 2 x=x+6 next k next j next i msgbox x 为什么结果是15
for i=1 to 4 x=4 for j=1 to 3 x=3 fork=1 to 2 x=x+6 next k next j next i msgbox x 为什么结果是15

for i=1 to 4 x=4 for j=1 to 3 x=3 fork=1 to 2 x=x+6 next k next j next i msgbox x 为什么结果是15
i=1; j=1; k=1; x=9
i=1; j=1; k=2; x=15
i=1; j=2; k=1; x=9
i=1; j=2; k=2; x=15
i=1; j=3; k=1; x=9
i=1; j=3; k=2; x=15
i=2; j=1; k=1; x=9
i=2; j=1; k=2; x=15
i=2; j=2; k=1; x=9
i=2; j=2; k=2; x=15
i=2; j=3; k=1; x=9
i=2; j=3; k=2; x=15
i=3; j=1; k=1; x=9
i=3; j=1; k=2; x=15
i=3; j=2; k=1; x=9
i=3; j=2; k=2; x=15
i=3; j=3; k=1; x=9
i=3; j=3; k=2; x=15
i=4; j=1; k=1; x=9
i=4; j=1; k=2; x=15
i=4; j=2; k=1; x=9
i=4; j=2; k=2; x=15
i=4; j=3; k=1; x=9
i=4; j=3; k=2; x=15