1 REM HELLO WORLD COMMODORE 64 BASIC
2 ? "HELLO WORLD"
3 END
|
# Ruby
#!/usr/local/bin/ruby -w
puts "Hello world" |
// C
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
} |
// C++
#include <iostream.h>
int main(void)
{
cout << "Hello World" << endl;
return 0;
} |
// JAVA
class helloWorld
{
public static void main(String args[])
{
System.out.println("Hello World");
}
} |
// Texas Instruments TI-81 BASIC
Prgm1:HELLO...
:Disp "HELLO WORLD"
|
// x86 inlined assembler.
#include <stdio.h>
char format[] = "%s %s\n";
char hello[] = "Hello";
char world[] = "world";
void main( void )
{
__asm
{
mov eax, offset world
push eax
mov eax, offset hello
push eax
mov eax, offset format
push eax
call printf
pop ebx
pop ebx
pop ebx
}
}
|
Perl #!/usr/bin perl -w print ("hello world");
|
Bash #!/bin/bash echo "Hello world" |
// Hello World .NET
#using <mscorlib.dll>
using namespace System;
int _tmain()
{
Console::WriteLine(S"Hello World");
return 0;
} |
// Hello World in brainfuck
// http://dtors.ath.cx/brainfuck.txt
// Creds to Speedy
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]
>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++
.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++. |
%% Erlang
-module(hello).
-export([world/0]).
world() -> io:format("Hello world"). |
<?php
// PHP
<?= "Hello world\n";
?>
or
<?="Hello world\n" ?>
|
{ Pascal, thanks Digi }
Program HelloWorld;
Begin
Writeln ('Hello World!');
End. |
// Delphi, thanks to C0derr
program Project1;
uses
qdialogs;
const
s='Hello, World!';
begin
showmessage(s);
end.
|
%!
%% Postscript, thanks to Jurgen
/Helvetica 20 selectfont
100 100 moveto
(Hello World) show
showpage
|
Your code here? :)
|