单项选择题

在一个窗体上添加一个命令按钮控件,名为Command1,事件过程如下,则执行结果是( )。
Option Base 1
Private Sub Command1_Cliek()
Dim a(5) As Integer
Dim k As Integer
Dim tota1 As Integer
a(1)=2
a(2)=5
a(3)=4
a(4)=10
a(5)=6
Fork=1 To 5
tota1=tota1+a(k)
Next k
Print total
End Sub

A.10
B.15
C.27
D.35