Knowing how to write hello-world program in multiple languages is crucial to be qualified as a hello-world programmer, so here is my collection.

§C

1
2
3
4
5
#include <stdio.h>
int main() {
puts("hello world.");
return 0;
}

§Java

1
2
3
4
5
public class main {
public static void main(String[] args) {
System.out.println("Hello world.");
}
}

§Haskell

1
2
main =
putStrLn "Hello world."

§CoffeeScript

1
console.log "Hello world."