是不是要这样子的效果?
Clear
? Factors(128)
Function Factors(X As Integer)
Local I As Integer
Local cooresponding_factors As String
Factors = 1
corresponding_factors = Transform(X)
For I = 2 To Sqrt(X)
If X % I = 0
Factors = Transform(Factors) + ", " + Transform(I)
If I <> X / I
corresponding_factors = Transform(X / I) + ", " + corresponding_factors
Endif
Endif && X
Endfor && I
If x <> 1
Factors = Factors + ", " + corresponding_factors
Endif
Return Factors
Endfunc
团队红星二锅头,队长王猛,领队李冲,顾问杨伟,副队张挺,外联马彪,内勤韩秀,人事顾闯,财务赵魁,后勤周强