Hello World – in 428+ ways!

Take a look at the 428+ ways you can write the classic C “Hello World”  at the Hello World Collection.

 

There’s C#

// Hello World in Microsoft C# ("C-Sharp").

using System;

class HelloWorld
{
    public static int Main(String[] args)
    {
        Console.WriteLine("Hello, World!");
        return 0;
    }
}

Python

# Hello World in Python
print "Hello World"

Good old QuickBASIC:

REM Hello World in QuickBASIC
PRINT "Hello World!"
END

XSLT

<?xml version="1.0" encoding="UTF-8"?>
<!-- Hello World in XSLT -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
        <xsl:text>Hello World!</xsl:text>
    </xsl:template>
</xsl:stylesheet>

And even Commodore-64 assembler:

; Hello World for 6502 Assembler (C64)

ldy #0
beq in
loop:
jsr $ffd2
iny
in:
lda hello,y
bne loop
rts
hello: .tx "Hello World!"
       .by 13,10,0

Do you know any languages that aren’t listed (non-proprietary of course).

One Comment

Comments are closed.