A “Hello world” program is a simple computer program which merely outputs the text “Hello world”. These are typically the first programs written when learning a new language since they display the basic syntax of the language and can help verify that the environment is working properly.

In any language or environment where text cannot be printed, “Hello world” usually refers to any simple program that generates output. For example, programming an LED to blink once every 5 seconds, or a speaker to make a sound.


Arduino Microcontroller

This is an example of a “Hello World”-esque program that causes an LED to blink on and off, rather than actually printing anything; the microcontroller does not have a proper screen on which to print. The code comes directly from the Arduino tutorial itself and all credit goes to the appropriate authors named there.

int ledPin = 13;                 // LED connected to digital pin 13
void setup()
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
void loop()
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(1000);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(1000);                  // waits for a second


Brainfuck is a language that is intentionally cryptic and difficult to read; it was designed merely for amusement rather than serious programming (1). The “Hello World” for the language illustrates this.

>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++
.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.


Far more readable than Brainfuck, C is a widely-used language for many reasons.

int main()
    printf("hello, world");
    return 0;


Java makes use of object-oriented programming. The keywords required for this programming paradigm make the Java “Hello World” slightly longer than that of C.

public class HelloWorld {
    public static void main(String [] args) {
        System.out.println("Hello World!");


This is a language designed for code readability. As such, the “Hello World” is noticeably simpler than C and Java.

print "Hello world"



QR Code
QR Code hello_world_program (generated for current page)