Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: Attn: SkyWatcher...

  1. #1
    Senior Member
    Join Date
    Aug 2008
    Location
    Under the patio...
    Posts
    197
    Post Thanks / Like
    This thread has been specially Pre-Derailed(tm), just for you

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    //
    // WDS Forum Rule 1: Thou shall not leave SkyWatchers threads untainted by sillyness
    // WDS Forum Rule 2: See Rule 1
    //
    namespace Hex.DerailSkyWatcher
    {
        class Program
        {
            static void Main(string[] args)
            {
                DerailThread();
            }
    
            public static string DerailThread()
            {
                for (int i = 10; i >= 0; i--)
                {
                    if (i == 0)
                    {
                        System.Console.WriteLine("There are no green bottles sitting on the wall!!!");
                    }
                    else
                    {
                        System.Console.WriteLine(string.Format("{0} green bottles sitting on the wall,", i));
                        System.Console.WriteLine(string.Format("{0} green bottles sitting on the wall,", i));
                        System.Console.WriteLine("And if one green bottle should accidentally fall...");
    
                        if ((i - 1) == 0)
                        {
                            System.Console.WriteLine("There'll be no green bottles sitting on the wall.");
                        }
                        else
                        {
                            System.Console.WriteLine(string.Format("There'll be {0} green bottles sitting on the wall.", (i - 1)));
                        }
                    }
                    System.Console.WriteLine();
                }
    
                return "Success!!!";
            }
        }
    }
    10 green bottles sitting on the wall,
    10 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 9 green bottles sitting on the wall.

    9 green bottles sitting on the wall,
    9 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 8 green bottles sitting on the wall.

    8 green bottles sitting on the wall,
    8 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 7 green bottles sitting on the wall.

    7 green bottles sitting on the wall,
    7 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 6 green bottles sitting on the wall.

    6 green bottles sitting on the wall,
    6 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 6 green bottles sitting on the wall.

    5 green bottles sitting on the wall,
    5 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 4 green bottles sitting on the wall.

    4 green bottles sitting on the wall,
    4 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 3 green bottles sitting on the wall.

    3 green bottles sitting on the wall,
    3 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 2 green bottles sitting on the wall.

    2 green bottles sitting on the wall,
    2 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be 1 green bottles sitting on the wall.

    1 green bottles sitting on the wall,
    1 green bottles sitting on the wall,
    And if one green bottle should accidentally fall...
    There'll be no green bottles sitting on the wall.

    There are no green bottles sitting on the wall!!!


    ... 'nuff said

  2. #2
    Senior Member
    Join Date
    Aug 2008
    Location
    Under the patio...
    Posts
    197
    Post Thanks / Like
    oh and that code is actually valid C# code that can be compiled into a working program using "Microsoft Visual C# 2008 Express"





    ... 'nuff said

  3. #3
    Moderator Dawn's Avatar
    Join Date
    Jun 2008
    Location
    In the red...
    Posts
    14,370
    Post Thanks / Like
    And while he's been sat doing that I've taken the dog on a 2 hour walk.

  4. #4
    Administrator keith's Avatar
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    20,754
    Post Thanks / Like
    Disney information? Try our online guidebook at http://wdisneysecrets.com
    Get your own Disney Countdown at http://toys.wdisneysecrets.com









  5. #5
    Senior Member
    Join Date
    Jul 2008
    Posts
    10,686
    Post Thanks / Like


    Thank you sir much appreciated :D

  6. #6
    Moderator Beccaberry's Avatar
    Join Date
    Jul 2008
    Location
    Milford, Connecticut, United States
    Posts
    13,927
    Post Thanks / Like



    A new smilie I've been working on...




  7. #7
    Administrator keith's Avatar
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    20,754
    Post Thanks / Like
    Disney information? Try our online guidebook at http://wdisneysecrets.com
    Get your own Disney Countdown at http://toys.wdisneysecrets.com









  8. #8
    Moderator Dawn's Avatar
    Join Date
    Jun 2008
    Location
    In the red...
    Posts
    14,370
    Post Thanks / Like

  9. #9
    Senior Member
    Join Date
    Jul 2008
    Posts
    10,686
    Post Thanks / Like
    That is simply awesome thanks hun

  10. #10
    Moderator Beccaberry's Avatar
    Join Date
    Jul 2008
    Location
    Milford, Connecticut, United States
    Posts
    13,927
    Post Thanks / Like
    :) I'll have our fearless leader add it to the general population :D




Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •