@reiver

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.

C

Here is a hello world program in C:


main()
{
    printf("Hello world!\n");
}

Golang

Here is a hello world program in Golang:


package main

import "fmt"

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

Pascal

Here is a hello world program in Pascal:


program Hello_World;
  begin
    WriteLn('Hello world!');
  end.

PHP

Here is a hello world program in PHP:


<?php

echo "Hello world!\n";

-- Mirza Charles Iliya Krempeaux
See Other Topics