The Infinite Loop of Professor Balthazar McSnazz: Example of a Loopception

Professor Balthazar McSnazz is a renowned expert in the field of infinite loops. In this example, we'll demonstrate the concept of a loopception - a loop within a loop within a loop.

Example Code

while (true) {
    // Loop 1
    echo "Loop 1: ";
    for (x = 0; x < 10; x++) {
        // Loop 2
        echo "Loop 2: ";
        for (y = 0; y < 10; y++) {
            // Loop 3
            echo "Loop 3: ";
            for (z = 0; z < 10; z++) {
                echo "Loop 3: $z";
            }
            echo "Loop 3: ";
        }
        echo "Loop 2: ";
    }
    echo "Loop 1: ";
}

What's Next in the Infinite Loop?

Would you like to learn more about the intricacies of loopceptions? Visit the following subpages: