为计算a"的值,某人编写了函数power如下:Private Function power(a As Integer,n As Integer)As LongDim s As Longp=aFor k=1 To np=p*aNext kpower=pEnd Function在调试时发现是错误的,例如Print power(5,4)的输出应该是625,但实际输出是3125。程序需要修改。下
单选题
为计算a"的值,某人编写了函数power如下:Private Function power(a As Integer,n As Integer)As LongDim s As Longp=aFor k=1 To np=p*aNext kpower=pEnd Function在调试时发现是错误的,例如Print power(5,4)的输出应该是625,但实际输出是3125。程序需要修改。下