Last modified on 27 February 2008, at 13:30

User:Siebengang/Workbench/Hello, world!

PythonEdit

# Hello World in Python
print "Hello, world!"

PerlEdit

# Hello World in Perl
print "Hello World!";

PHPEdit

<?php
    // Hello World in PHP
    echo 'Hello, world!';
?>

CEdit

/* Hello World in Ansi-C */
#include <stdio.h>
int main()
{
    printf("Hello, World!\n");
    return 0;
}

C++Edit

// Hello World in C++
#include <iostream>
int main()
{
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

C#Edit

// Hello World in Microsoft C#
using System;
class HelloWorld
{
    public static int Main(String[] args)
    {
        Console.WriteLine("Hello, World!");
        return 0;
    }
}

Fortran 77Edit

C     Hello World in Fortran 77
      PROGRAM HELLO
      PRINT*, 'Hello World!'
      END

JavaEdit

// Hello World in Java
class HelloWorld
{  
    public static void main(String args[])
    {
        System.out.println("Hello World!");
    }
}

PascalEdit

{Hello World in Pascal}
program HelloWorld(output);
begin
  WriteLn('Hello World!');
end.

BasicEdit

10 REM Hello World in BASIC
20 PRINT "Hello World!"