Jump to content

Hello world program

From Simple English Wikipedia, the free encyclopedia

A Hello world program is usually a program made by computer programmers that are new to a programming languages, or to test if the compiler for this language is working correctly. It will simply put the text Hello, World! on the screen. One way to do the Hello World program is shown below, in the C programming language.

#include <stdio.h>

int main(int argc, char* argv[])
{
     printf("Hello World");
     return 0;
}

On Python programming language:

print("Hello World")

On Pascal programming language

program helloworld;
begin
     WriteLn('Hello World');
end.
On [[Lua (programming language)|Lua programming language:]]<syntaxhighlight lang="lua">
print("Hello World")

Other websites