Why does my Loop end after 11 Loops?
#63
https://www.youtube.com/watch?v=8FftI0oRg2M

Code: (Select All)
_Title "Burn out" ' b+2023-02-13
recur 1, 2, 3, 4, 5, 6

'For TNa = 1 To 44
'    For TNb = 2 To 45
'        For TNc = 3 To 46
'            For TNd = 4 To 47
'                For TNe = 5 To 48
'                    For TNf = 6 To 49
'                        Print TNa; TNb; TNc; TNd; TNe; TNf
'                    Next
'                Next
'            Next
'        Next
'    Next
'Next

Sub recur (a, b, c, d, e, f)
    Print a; b; c; d; e; f; "press a key to continue..."
    Sleep
    f = f + 1
    If f > 49 Then
        f = 6
        e = e + 1
        If e > 48 Then
            e = 5
            d = d + 1
            If d > 47 Then
                d = 4
                c = c + 1
                If c > 46 Then
                    c = 3
                    b = b + 1
                    If b > 45 Then
                        b = 2
                        a = a + 1
                        If a > 44 Then Print "Has the sun burnt out yet?": Exit Sub
                    End If
                End If
            End If
        End If
    End If
    ' what? still here then
    recur a, b, c, d, e, f
End Sub


LOL shows you how bored I am!
b = b + ...
Reply


Messages In This Thread
Why does my Loop end after 11 Loops? - by Dimster - 02-06-2023, 07:08 PM
RE: Why does my Loop end after 11 Loops? - by bplus - 02-13-2023, 05:14 PM



Users browsing this thread: 20 Guest(s)