The Loop Kingdom

Status
Not open for further replies.

abhi.eternal

In search of light...
Hey check out these codes (they are not explicitly from a programming language, just for fun):
Code:
//The Story Of The Loop Kingdom
var king;
var queen;
var prince;
var princess;
var prince_otherKingdom;
var princess_otherKingdom;
var x,y;

10    if (prince marry princess_otherKingdom)            //marry is a pre-defined function
    {    while (king AND queen = false)            //false = dead (pre-defined)    
        {    king = prince;
            queen = princess_otherKingdom;
            x = king + queen;
            if (x = boy) then
                prince = x;
            else if (x = girl) then
                {    princess = x;
                    goto 20;
                }
            else goto 30;
            }
        }
        goto 10;
    else
    {    echo ("The Prince Did Not Marry And Died. The Program Cannot Continue.");    //everyone is of good character in Loop Kingdom
        goto 40;
    }end if;
    
20     if (princess marry prince_otherKingdom) then
    {    if (price_otherKingdom takes princess) then        //takes is a pre-defined function
        {    echo ("The Princess Went To Another Kingdom Leaving The Loop Kingdom");
            goto 40;
        }
        else if (price_otherKingdom !takes princess) then    //considering prince_otherKingdom stayed on with the princess
        {    king = prince_otherKingdom;
            queen = princess;
            y = king + queen;
            if (y = boy) then
            {    prince = y;
                goto 10;
            }
            else if (y = girl) then
            {    princess = y;
                goto 20;
            }end if;
        }end if;
    }
    else 
    {    echo ("The Princess Did Not Marry and Died. The Program Cannot Continue.");    //everyone is of good character in Loop Kingdom
        goto 40;
    }end if;

30 echo ("The King And Queen Did Not Have Any Child.");
40 sleep 5;
echo ("The Loop Kingdom Ends.");
//End Of The Story
I'll be waiting for your comments..... and yes this are my original codes!:D
 
Status
Not open for further replies.
Top Bottom