Hello World Program

A hello world program (also sometimes just called a hello world) is a simple program that outputs the text "hello world" of something like it. Typically hello world programs are used as the first program someone learns when trying to learn a programming language (that is new to them). I is a means of starting the learning process, with something that is (more) concrete and (less) abstract.

The term hellow world is also used in non-programming language situations too, to refer to something used as a simple first thing to learn when starting to learn a topic.

One of the points of the hellow world (both for programming language and non-programming language situations) is that through making (usually small) modifications to it, further learning can be facilitated.

Example Hello World Programs

Here are some example hello world programs.


Here is a hello world program in C:

    printf("Hello world!\n");


Here is a hello world program in Golang:

package main

import "fmt"

func main() {
    fmt.Printf("Hello world!\n")


Here is a hello world program in Pascal:

program Hello_World;
    WriteLn('Hello world!');


Here is a hello world program in PHP:


echo "Hello world!\n";

-- Mirza Charles Iliya Krempeaux
See Other Topics