Hello World

A "Hello world" program is a computer program that outputs "Hello World" (or some variant) on a display device. The first known version of this program comes from Brian Kernighan's paper A Tutorial Introduction to the Language B from 1972 (chapter 7). In it's first form it was used to show how to use external variables in B but since then it has become pretty much the standard example to show the very basic syntax and most simple program in any given programming language.

On this page you can find a bunch of source code examples in various programming languages. Here is a legend of how the page is built up:

Name
Actual source code
goes
here...

Click to expand and see source code

Download the example source file

Read more about the specific programming language at wikipedia

Buy beginners books about the programming language (optional)

Tutorial on the programming language selected (optional)


Language Logo{{source.lang}}
{{source.sourceCode}}
Loading source...