03 January 2011

Scheme

(write "Hello World !")

C

#include <stdio.h>

int main(void)
{
  printf("Hello world\n");
}

C++

#include <iostream>

int main()
{
  std::cout << "Hello World!" << std::endl;
}

Java

public class HelloWorld {//this file MUST have a name "HelloWorld.java"
   public static void main(String[] args) {
       System.out.println("Hello world!");
   }
}

Javascriopt

document.write('Hello world!');

Scala

object HelloWorld extends Application {
  println("Hello world!")
}



comments powered by Disqus