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
- Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language
- Oracle Java Tutorials, The “Hello World!” Application
- The Rust Programming Language, Hello, World!
- Wikidata
This page in Markdown https://md.technologia.elamur.ai/free/en/hello-world-program/