VB练习题,,请高手帮我完成 a=(2n+1)!,n is an positive integer
题目
VB练习题,,请高手帮我完成 a=(2n+1)!,n is an positive integer
答案
Dim n As Integer
Private Sub Form_Click()
Dim i As Integer
Dim j As Long
j = 1
For i = 1 To n
j = j * 2 * i * (2 * i + 1)
Next i
Print j
End Sub
Private Sub Form_Load()
n = InputBox("请输入n的数值:")
End Sub
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点