exit code 0

Hello, World 

Every language greets the world the same way first. The phrase traces back to Brian Kernighan's 1972 tutorial for the B language at Bell Labs, then rode printf("hello, world\n"); into fame through Kernighan & Ritchie's C book in 1978 — and it's been the first line written in a new language ever since.

The same line, six ways

stdout →
C1978
#include <stdio.h>
int main() { printf("hello, world\n"); }
Python1991
print("Hello, World!")
Rust2015
fn main() { println!("Hello, world!"); }
JavaScript1995
console.log("Hello, World!");
Common Lisp1984
(format t "~a, ~a!~%" "Hello" "World")
x86 asm1978
mov edx, len
mov ecx, msg
int 0x80
rendered 2026-09-07 utf-8 · no dependencies · 0 warnings