for next for i=1 to 4 x=4 for j=1 to 3 x=3 for k=1 to 2 x=x+5 next next next print x能够给出具体的算法和计算顺序,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 18:58:52
fornextfori=1to4x=4forj=1to3x=3fork=1to2x=x+5nextnextnextprintx能够给出具体的算法和计算顺序,fornextfori=1to4x=4for
for next for i=1 to 4 x=4 for j=1 to 3 x=3 for k=1 to 2 x=x+5 next next next print x能够给出具体的算法和计算顺序,
for next for i=1 to 4 x=4 for j=1 to 3 x=3 for k=1 to 2 x=x+5 next next next print x
能够给出具体的算法和计算顺序,
for next for i=1 to 4 x=4 for j=1 to 3 x=3 for k=1 to 2 x=x+5 next next next print x能够给出具体的算法和计算顺序,
你这个循环,x都会变成固定的.所以无论你循环多少次,它最终执行的只有
x = 3
For k = 1 To 2
x = x + 5
next
即x=3
x=3+5=8
x=8+5=13
x的值都是13