下列程序段的执行后,k,x 结果为 ____. x = 6 For k = 1 To 0 x = x + k
问题描述:
下列程序段的执行后,k,x 结果为 ____. x = 6 For k = 1 To 0 x = x + k
下列程序段的执行后,k,x 结果为 ____.
x = 6
For k = 1 To 0
x = x + k
Next k
A) k = -1,x = 6
B) k = -1,x = 16
C) k = 1,x = 6
D) k = 11,x = 31
答
你没有告诉我步长,兄弟. 从大到小 步长为 -没有步长呀,老师就给了这题目。求解释【星星眼】C) k = 1,x = 6