A little puzzle

Discussion in 'Counter-Strike: Global Offensive Servers' started by cheenis, Jul 8, 2016.

  1. cheenis FaceWAN Premium Full

    Joined:
    Jan 8, 2016
    Messages:
    130
    Likes Received:
    12
    Trophy Points:
    18
    Occupation:
    Verified WinRAR License Owner
    Location:
    Toronto
    Heyo a tiny giveaway for you guys
    If you can determine and explain this, ill give you one key. You have until Sunday July 10 at 8pm to solve
    If multiple people solve correctly, Ill randomly pick one.

    x = 7
    y = x + 1

    while y < 100

    y=y*y

    print(y)

    WHATS THE OUTPUT OF THIS AND EXPLAIN YOUR REASONING. USING A COMPILER IS PROHIBITED AND ILL KNOW IF YOU USED ONE

    GOOD LUCK
     
    Last edited: Jul 8, 2016
  2. matthaios Chicken nuggers Staff Member

    Joined:
    Sep 9, 2007
    Messages:
    362
    Likes Received:
    3
    Trophy Points:
    18
    Occupation:
    N/A
    Location:
    The Netherlands
    x = 7
    y = x + 1
    y = 7 + 1 = 8

    while y < 100
    y = y^2

    so
    y = 8
    y = 8^2 = 64
    y = 64^2 = 4096

    printed would be 4096

    idk tho im just a scrub
     
  3. Brainles5 FaceWAN Premium Full

    Joined:
    Jun 29, 2012
    Messages:
    175
    Likes Received:
    19
    Trophy Points:
    18
    Lol, not gonna help you with your homework man. Besides, mathyson is pretty much right. The exact output would be:

    Code:
    64
    4096
    
     
    Last edited: Jul 8, 2016
  4. cheenis FaceWAN Premium Full

    Joined:
    Jan 8, 2016
    Messages:
    130
    Likes Received:
    12
    Trophy Points:
    18
    Occupation:
    Verified WinRAR License Owner
    Location:
    Toronto
    NOT HOMEWORK YOU PLEB IM OFF SCHOOL ANYWAYS

    I just wanna giveaway stuff
     
  5. *sNAFU FaceWAN Premium Full

    Joined:
    Mar 1, 2012
    Messages:
    206
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    Colorado
    Give it to me then.
     
  6. Furchee Yiff Staff Member

    Joined:
    Jan 22, 2012
    Messages:
    1,127
    Likes Received:
    48
    Trophy Points:
    48
    Location:
    Surrey
    Nah he's giving it to me.
    It's rigged in my favor.
     
  7. cheenis FaceWAN Premium Full

    Joined:
    Jan 8, 2016
    Messages:
    130
    Likes Received:
    12
    Trophy Points:
    18
    Occupation:
    Verified WinRAR License Owner
    Location:
    Toronto
    So Uh since two people got it right. I randomized them and Brainles5 won, so msg me when you can so I can send you nudes
     
  8. cheenis FaceWAN Premium Full

    Joined:
    Jan 8, 2016
    Messages:
    130
    Likes Received:
    12
    Trophy Points:
    18
    Occupation:
    Verified WinRAR License Owner
    Location:
    Toronto
    cheenis: check your trade offers
    cheenis: coongrats ur a weiner
    Brainles5: I wanna thank my dad and mom for always believing in me
    Brainles5: And i wanna thank the jury for recognizing my work
    Brainles5: *Holds up key*
    Brainles5: Wew lad
    cheenis: beautiful