单项选择题

现有如下程序:
Private Sub Command1_Click()
S=0
For i=1 to 5
S=S+f(5+i)
Next
Print S
End Sub
Public Function f(x As Integer)
If x>=10 Then
t=x+1
Else
t=x+2
End If
f=t
End Function
运行程序,则窗体上显示的是( )

A.38
B.49
C.61
D.70