现在的位置: 首页 > 综合 > 正文

递归输出3个数字结合

2012年06月21日 ⁄ 综合 ⁄ 共 315字 ⁄ 字号 评论关闭


<%

OutputJoin 
""1


'递归输出3个数字结合
Sub OutputJoin(s, count) 
    
If count > 3 Then
        
Exit Sub
    
End If

    
Dim i, t
    
For i = 1 To 9
        t 
= s '将值保存
        
        s 
= s & i
        
If count = 3 Then
            Response.Write s 
& "<br>"
        
End If
        OutputJoin s, count
+1

        s 
= t '还原值
    Next
End Sub

%
>

抱歉!评论已关闭.