a = 0 For i = 1 To 3 For j = 1 To i For k = j To 3 a = a + 1 Next k Next j Next i Print aa = 0 For i = 1 To 3 For j = 1 To i For k = j To 3 a = a + 1 Next k Next j Next i Print a 这里循环了几次是怎样循环的
问题描述:
a = 0 For i = 1 To 3 For j = 1 To i For k = j To 3 a = a + 1 Next k Next j Next i Print a
a = 0
For i = 1 To 3
For j = 1 To i
For k = j To 3
a = a + 1
Next k
Next j
Next i
Print a 这里循环了几次
是怎样循环的
答
14次,i=1时3次,i=2时5次,i=3是6次