|
C#
--
using System;
namespace MyNamespace
{
class MyClass
{
static void Main(string[] args)
{
System.Console.WriteLine("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!\n" << endl;
return 0;
}
Java
----
import java.lang.*;
public class HelloWorld
{
public static void Main(String args[])
{
System.out.println("Hello World!");
}
}
LISP
----
(defun main(arg)
(format t "Hello ~A World!" arg))
ALGOL 68
--------
*LIB=..\STDLIB\TRANSPUT
'begin'
print("Hello World!")
'end'
PASCAL
------
Program HelloWorld;
Begin
Begin
WriteLn('Hello World!');
End;
End.
PROLOG
------
At the end of Summer 1999, after my Programming Languages class was over, I swore that
I would never again write a single line of PROLOG. Today will not be an exception.
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Programming in C++ (and various other languages) since 1993. Started with OWL, then went on to MFC, ATL, Java, etc...
Graduated from Georgia Tech in December 2001.