请教用VB程序语言编写(2的阶乘分之x)+(4的阶乘分之x的3次方)+…+(2的n次方的阶乘分之x的2n-1次方)?

问题描述:

请教用VB程序语言编写(2的阶乘分之x)+(4的阶乘分之x的3次方)+…+(2的n次方的阶乘分之x的2n-1次方)?

Private Sub Form_Click()Dim x As Single,s As DoubleDim n As Integers = 0x = Text1.Text ‘文本框里输入x的值n = Text2.Text ’输入n的值For i = 1 To ns = s + x ^ (2 * i - 1) / 2 ^ iNextPrint sEnd Sub请加...