private sub command_click() for i=1 to4 x=3 for j=1to3 for k=1 to 2 x=x+3 next k next j next i 输出输出str(x)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/01 06:59:53
x)+(,K,IU(.MRHMKOLTH/Rȴ5T(7Q5l
K!lPBX!/D!BeAL&?m!Kx&H>6m°^f lN%Ӟnlzo?[iܧ˻Lڧiu6>|ʊ
/fN|Mi*lK@*Z62,|6uÓmt =߲ic38hӶ^{Gޗs m~6c~qAb(
private sub command_click() for i=1 to4 x=3 for j=1to3 for k=1 to 2 x=x+3 next k next j next i 输出输出str(x)
private sub command_click() for i=1 to4 x=3 for j=1to3 for k=1 to 2 x=x+3 next k next j next i 输出
输出str(x)
private sub command_click() for i=1 to4 x=3 for j=1to3 for k=1 to 2 x=x+3 next k next j next i 输出输出str(x)
最外层循环每次初始化x=3,那么最外层就不用考虑了,只考虑x=3
两层内循环总循环次数为2*3=6,每次累加3,6次累加了18,再加上前面3,就是21