1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Other Can bit-tech count to 100?

Discussion in 'General' started by Lord Xeb, 27 Jan 2011.

Thread Status:
Not open for further replies.
  1. jhanlon303

    jhanlon303 The Keeper of History

    Joined:
    7 Sep 2006
    Posts:
    9,263
    Likes Received:
    302
  2. Pieface

    Pieface Modder

    Joined:
    8 Mar 2009
    Posts:
    3,355
    Likes Received:
    134
  3. chrismarkham1982

    chrismarkham1982 Multimodder

    Joined:
    1 Apr 2010
    Posts:
    1,835
    Likes Received:
    259
    are we there yet?
     
  4. Psycho

    Psycho Average

    Joined:
    15 Sep 2009
    Posts:
    2,275
    Likes Received:
    221
  5. jhanlon303

    jhanlon303 The Keeper of History

    Joined:
    7 Sep 2006
    Posts:
    9,263
    Likes Received:
    302
  6. Guest-23315

    Guest-23315 Guest

    Oh look, peadobear's at his day job.
     
  7. Omega Point

    Omega Point What's a Dremel?

    Joined:
    3 Sep 2008
    Posts:
    552
    Likes Received:
    34
    Code:
    public void CountTo100()
    {
         int i = 0;
    
         while (i < 100)
         {
              i++;
    
              bitTechForums.PostInThread(202508, i);
         }
    }
    
     
  8. Psycho

    Psycho Average

    Joined:
    15 Sep 2009
    Posts:
    2,275
    Likes Received:
    221
    Okay, after seeing that my mind is THIS close to explosion. Care to traduce?
     
  9. Canon

    Canon Reformed

    Joined:
    19 Jul 2010
    Posts:
    2,961
    Likes Received:
    246
    Too drunk to click threads, you say what?
     
  10. jhanlon303

    jhanlon303 The Keeper of History

    Joined:
    7 Sep 2006
    Posts:
    9,263
    Likes Received:
    302
    We supposed to do 1 to 100!

    How about i=1
    and
    while i <= 100
     
  11. Omega Point

    Omega Point What's a Dremel?

    Joined:
    3 Sep 2008
    Posts:
    552
    Likes Received:
    34
    It does do 1 to 100.

    Although i starts at 0 but in each iteration i is incremented before it is posted, thus the first post would be 1. Then the the loop until i > 99 which means the last loop increments i to 100 and posts it.

    ---edit---
    See bit-tech can count to 100:
    [​IMG]

    EDIT: No I cannot sleep, yes I am very bored.
     
    Last edited: 30 Jan 2011
    October likes this.
  12. automagsrock

    automagsrock What's a Dremel?

    Joined:
    18 Nov 2004
    Posts:
    1,183
    Likes Received:
    15
    Good old programming. Good how I hated learning you in College.
     
  13. Psycho

    Psycho Average

    Joined:
    15 Sep 2009
    Posts:
    2,275
    Likes Received:
    221
    Oh god...
     
  14. alpaca

    alpaca llama eats dremel

    Joined:
    27 Jan 2009
    Posts:
    1,132
    Likes Received:
    45
    Once again, computers prevailed where humans failed! Skynet is close
     
    mvagusta likes this.
  15. kitt

    kitt Michael Knight

    Joined:
    8 Aug 2004
    Posts:
    282
    Likes Received:
    2
    [​IMG]

    :jawdrop:
     
    mvagusta likes this.
  16. mvagusta

    mvagusta Did a skid that went for two weeks.

    Joined:
    24 Dec 2006
    Posts:
    4,639
    Likes Received:
    523
Thread Status:
Not open for further replies.

Share This Page