Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Hello world program

From Coderwiki
Revision as of 11:08, 9 August 2025 by Dylan (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A 'Hello World' program is generally the simplest computer program possible in a programming language.

Uses of a hello world program

edit edit source

Example: hello world in Python

edit edit source
print("Hello World")

Example: hello world in C

edit edit source
#include <stdio.h>
int main(int argc, char* argv[]) {
    printf("Hello World");
    return 0;
}

Example: hello world in Java

edit edit source
// File name: MyProgram.java
public class MyProgram {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}