Thursday, May 6, 2010

FizzBuzzLol

plagiarised directly from a comment by KingOfTheMoon on Slashdot.

For anyone who is interested in working in my industry - if you can't trot this out (in the language of your choice) then you might be better looking elsewhere.

HAI
CAN HAS STDIO?
I HAS A NADA ITZ 0
I HAS A VAR
IM IN YR LOOP
    UP VAR!!1
        I HAS A ANZER ITZ ""

        BOTH SAEM MOD OF VAR AN 3 AN NADA, O RLY?
           YA RLY ANZER "Fizz"
        OIC

        BOTH SAEM MOD OF VAR AN 5 AN NADA, O RLY?
           YA RLY SMOOSH ANZER AN "Buzz" MKAY
        OIC

        BOTH SAEM ANZER AN "", O RLY?
           YA RLY
              VISIBLE VAR
           NO WAI
              VISIBLE ANZER
        OIC

        VISIBLE ":)" BTW DAS A NEWLINE
        IZ VAR BIGGER THAN 100? KTHXBYE
        BTW IMMA SO GUNNA GET HIRED!

IM OUTTA YR LOOP

KTHXBYE

No comments:

Post a Comment