Hello World

From mi-linux
Revision as of 16:45, 24 January 2011 by In6659 (talk | contribs)
Jump to navigationJump to search

Scala

object HelloWorld { 
def main(args: Array[String]) : Unit = { 
println("Hello world!")
} 
}
<br>

Java

 public class Hello {

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

 }
 

c#

 using System;
 class ExampleClass
 {
     static void Main()
     {
         Console.WriteLine("Hello, world!");
     }
 }
 

PHP

 <?php
    echo("Hello World!");
 ?>
 

Python (versions 1 and 2)

 print "Hello World!"
 

Python3

 print("Hello World!")