Forum     

Go Back   Digit Technology Discussion Forum > Bandwidth Wastage > Chit-Chat
Register FAQ Calendar Mark Forums Read

Chit-Chat General discussions about anything that doesn't fit into the other sections to be had here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 23-02-2007, 01:14 AM   #1 (permalink)
In search of light...
 
abhi.eternal's Avatar
 
Join Date: Sep 2006
Location: Bangalore
Posts: 307
Cool The Loop Kingdom


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!
__________________
http://abhijeetdeb.com
abhi.eternal is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-12-2007, 07:13 PM   #2 (permalink)
In search of light...
 
abhi.eternal's Avatar
 
Join Date: Sep 2006
Location: Bangalore
Posts: 307
Default Re: The Loop Kingdom

bump... (gare murda khod ke nikalne ka perfect example!! ◄ i was talking about this thread)
__________________
http://abhijeetdeb.com
abhi.eternal is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by Who
- by bhaskar
- by abhidev
- by icebags

Advertisement




All times are GMT +5.5. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2