×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    HQ9+: Difference between revisions

    Content added Content deleted
    imported>mutante
    mNo edit summary
     
    imported>mutante
    mNo edit summary
     
    Line 1: Line 1:
    A programming language that can do exactly 4 things:
    A programming language that can do exactly 4 things:


    H Prints "Hello, world!"
    H Prints "Hello, world!"
    Q Prints the entire text of the source code file.
    Q Prints the entire text of the source code file.
    9 Prints the complete canonical lyrics to "99 Bottles of Beer on the Wall"
    9 Prints the complete canonical lyrics to "99 Bottles of Beer on the Wall"
    + Increments the accumulator.
    + Increments the accumulator.





    Latest revision as of 12:57, 3 January 2007

    A programming language that can do exactly 4 things:

    H       Prints "Hello, world!"
    Q 	Prints the entire text of the source code file.
    9 	Prints the complete canonical lyrics to "99 Bottles of Beer on the Wall"
    + 	Increments the accumulator.
    


    So the source code for the famous "99 bottles of beer"-program is simply: 9. ;)

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.