Voting

Category

esoteric language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language LOLCODE

(V1.2 Using functions, if, and switch.)

Date:05/01/12
Author:Almo!
URL:n/a
Comments:0
Info:http://lolcode.com/specs/1.2
Score: (3.78 in 18 votes)
OBTW
    Almo's first LOLCODE program
    done according to LOLCODE v1.2 standard
    thanks to repl.it for the neat web IDE
TLDR

HAI

VISIBLE "O HAI!"

HOW DUZ I SHOWBEERZ YR NUMBEERZ
    DIFFRINT NUMBEERZ AN 69
    O RLY?
        YA RLY
            MOD OF NUMBEERZ AN 3, WTF?
                OMG 0
                    VISIBLE "Wahl haz " NUMBEERZ " botlez!!"
                    GTFO
                OMG 1
                    VISIBLE NUMBEERZ " botlez uv beer on teh wahl!"
                    GTFO
                OMGWTF
                    VISIBLE NUMBEERZ " botlez uv beer stihl on teh wahl!"
            OIC
        NO WAI
            VISIBLE "Da funy # 69 iz haow many botlez there iz!"
    OIC
    GTFO
IF U SAY SO

I HAS A BEERZVAR ITZ 99

IM IN YR LOOP NERFIN YR BEERZVAR TIL BOTH SAEM BEERZVAR AN 1
    VISIBLE "Therez " BEERZVAR " beerz on teh wahl..."
    VISIBLE "Takez wun daown, passez it around..."
    SHOWBEERZ DIFF OF BEERZVAR AN 1
IM OUTTA YR LOOP

VISIBLE "Jus wun botle uv beer on teh wahl!"
VISIBLE "Takez it daown, passez it around..."
VISIBLE "No moar botlez of beer on teh wahl!"
VISIBLE "Goez to stoar, getz sum moar..."
VISIBLE "99 botlez of beer is on teh wahl again, jus liek b4!"

VISIBLE "KTHXBYE"

KTHXBYE

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
sjlol version 1.1 for lolcode 1.0Mike Gogulski07/13/0720
Based on the LOLCode 1.2 specAlyssa Lambert10/08/072
Lolcode .Net DialectxCM2x11/16/080

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: