> 其他 >
vb下面程序,运行时内循环总次数是 For m=1 to 3 For N=0 to m-1 next N next m
For m=1 to 3
For N=0 to m-1
next N
next m
人气:463 ℃ 时间:2020-04-06 08:32:54
解答
m=1时,n只从0到0运行了一次.
m=2时,n从0到1运行了两次.
m=3时,n从0到2运行了三次.
故内循环总次数是:1+2+3=6次.
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版