单项选择题

阅读下面的程序段:
For a=1 To 2
  For b=1 To a
    For c=b To 2
      i=i+1
    Next
  Next
Next
Print i
执行上面的3重循环后,i的值为

A.4
B.5
C.6
D.9