---
title: Hello, world! program — history, transitions and spread
description: A Hello, world! program displays a short greeting to demonstrate how to write and run a minimal program.
---

Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

This page as HTML: <https://technologia.elamur.ai/free/en/hello-world-program/>

# Hello, world! program

A Hello, world! program displays a short greeting to demonstrate how to write and run a minimal program. The visible output gives beginners a quick way to check that their editor, compiler or interpreter, and runtime work together. An early example in Brian Kernighan’s Bell Labs tutorial for B printed “hello, world” followed by a newline. The 1978 book The C Programming Language helped popularize the example, which now appears in tutorials for many languages and platforms.

## Origin

- **When:** Early 1970s, in Bell Labs tutorials for B and C
- **Where:** Bell Labs, United States
- **Who:** Brian Kernighan

## Transitions

| From | To | Years | Why |
|---|---|---|---|
| First programs that print a number or an arithmetic result | Hello, world! as a first programming exercise | 1972 – 1978 (6 years) | A recognizable greeting made successful execution easy to verify; A fixed string let instructors introduce output before variables or arithmetic; The C Programming Language gave the example a wide audience |
| Hello, world! compiled and run from a command line | Hello, world! run in a browser playground or interactive notebook | 2000 – 2025 (25 years) | Hosted environments reduce the need to install or configure a local toolchain; Running code beside the tutorial gives learners immediate feedback |

## Spread

- **1972:** Bell Labs, United States
- **1978:** United States
- **2015:** Worldwide through online programming tutorials

## Near future

Browser playgrounds and notebooks increasingly let beginners run the greeting directly in a lesson. For web frameworks, mobile apps, and cloud services, the first example often renders a page, displays a screen, or returns an HTTP response so that it tests the platform’s normal output path.

## Sources

- [Brian W. Kernighan, A Tutorial Introduction to the Language B](https://www.cs.princeton.edu/~bwk/btl.mirror/)
- [Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language](https://www.cs.princeton.edu/~bwk/cbook.html)
- [Oracle Java Tutorials, The “Hello World!” Application](https://docs.oracle.com/javase/tutorial/getStarted/cupojava/index.html)
- [The Rust Programming Language, Hello, World!](https://doc.rust-lang.org/book/ch01-02-hello-world.html)
- [Wikidata](https://www.wikidata.org/wiki/Q131303)

For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: https://technologia.elamur.ai/sitemap.xml · https://technologia.elamur.ai/llms.txt · https://md.technologia.elamur.ai/free/en/hello-world-program/
