Skip to content

Instantly share code, notes, and snippets.

@GarrisonJ
Created July 24, 2013 16:59
Show Gist options
  • Save GarrisonJ/6072396 to your computer and use it in GitHub Desktop.
Save GarrisonJ/6072396 to your computer and use it in GitHub Desktop.
FizzBuzz in lolcode
OBTW
This code follows the LOLCODE 1.2 spec (http://lolcode.com/specs/1.2).
As of 2013/07/22 this code compiled using the online compiler at http://repl.it/languages/LOLCODE without issue.
TLDR
HAI
I HAS A VAR ITZ 1
IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 101
I HAS A FIFTEN ITZ MOD OF VAR AN 15
I HAS A FIVE ITZ MOD OF VAR AN 5
I HAS A THREE ITZ MOD OF VAR AN 3
BOTH SAEM FIFTEN AN 0, O RLY?
YA RLY
VISIBLE "FizzBuzz"
MEBBE BOTH SAEM FIVE AN 0
VISIBLE "Buzz"
MEBBE BOTH SAEM THREE AN 0
VISIBLE "Fizz"
NO WAI
VISIBLE VAR
OIC
IM OUTTA YR LOOP
KTHXBYE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment