Hello World
Jump to navigation
Jump to search
A "Hello, World!" program is a simple computer program that outputs or displays the message "Hello, World!" on the screen, typically in a console or terminal window. It is commonly used as the first program written by people learning a new programming language to illustrate the language's basic syntax and to verify that the programming environment is correctly set up.
Examples
Python
print("Hello, World!")
C
#include <stdio.h>
int main(void) {
puts("Hello, World!");
return 0;
}
Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Assembly (FASM, x86-64 Linux)
format ELF64 executable 3
segment readable executable
_start:
mov rax, 1
mov rdi, 1
mov rsi, hw
mov rdx, hwl
syscall
mov rax, 60
xor rdi, rdi
syscall
segment readable
hw: db "Hello, World!", 10
hwl = $ - hw
AutoHotkey
#NoEnv
MsgBox Hello, World!