Hello World In All Programming Languages

“Hello, World!” These humble words have become a universal tradition, serving as a rite of passage for countless developers as they start learning new languages.

Whether you’re writing in Python, JavaScript, or something as obscure as Brainf*ck, the first step is always the same—making your computer speak those two familiar words.

But have you ever wondered what “Hello, World!” looks like across the vast landscape of programming languages? From the classics like C and Java to emerging languages like Rust and Elixir, each has its unique way of expressing this simple greeting.

This guide takes you on a flighty tour through the Hello World in all programming languages. It’s a chance to see how diverse and creative the programming world can be, even when tasked with saying something as straightforward as “Hello, World!”

So, whether you’re a seasoned coder looking for nostalgia or a curious learner exploring new languages, let’s dive into the fascinating world of “Hello, World!”—one line of code at a time.

Table Of Contents 👉

Hello World In All Languages

Hello World In All Programming Languages

Hello World In Python

print(“Hello World”)

Hello World In JavaScript

console.log(“Hello, World!”);

Hello World In Java

public class Main {
public static void main(String[] args) {
System.out.println(“Hello, World!”);
}
}

Hello World In C

#include
int main() {
printf(“Hello, World!\n”);
return 0;
}

Hello World In C++

#include
int main() {
std::cout << “Hello, World!” << std::endl;
return 0;
}

Hello World In C#

using System;
class Program {
static void Main() {
Console.WriteLine(“Hello, World!”);
}
}

Hello World In PHP

<?php
echo “Hello, World!”;
?>

Hello World In Swift

print(“Hello, World!”)

Hello World In Ruby

puts “Hello, World!”

Hello World In Kotlin

fun main() {
println(“Hello, World!”)
}

Relevant Posts You May Like

Hello World In R

print(“Hello, World!”)

Hello World In Typescript

console.log(“Hello, World!”);

Hello World In Go

package main
import “fmt”
func main() {
fmt.Println(“Hello, World!”)
}

Hello World In SQL

SELECT ‘Hello, World!’;

Hello World In Perl

print “Hello, World!\n”;

Hello World In Rust

fn main() {
println!(“Hello, World!”);
}

Hello World In Dart

void main() {
print(‘Hello, World!’);
}

Hello World In Objective C

#import
int main() {
NSLog(@”Hello, World!”);
return 0;
}

Hello World In Shell Scripting (Bash)

echo “Hello, World!”

Hello World In Scala

object HelloWorld {
def main(args: Array[String]): Unit = {
println(“Hello, World!”)
}
}

Hello World In Lua

print(“Hello, World!”)

Hello World In Matlab

disp(‘Hello, World!’)

Hello World In Groovy

println “Hello, World!”

Hello World In VBA

Sub HelloWorld()
MsgBox “Hello, World!”
End Sub

Hello World In Julia

println(“Hello, World!”)

Hello World In Haskell

main = putStrLn “Hello, World!”

Hello World In Erlang

-module(hello).
-export([hello/0]).
hello() -> io:format(“Hello, World!\n”).

Hello World In F#

printfn “Hello, World!”

Hello World In Elixir

IO.puts “Hello, World!”

Hello World In Cobol

IDENTIFICATION DIVISION.
PROGRAM-ID. HelloWorld.
PROCEDURE DIVISION.
DISPLAY “Hello, World!”.
STOP RUN.

Hello World In Fortran

PROGRAM HelloWorld
PRINT *, “Hello, World!”
END PROGRAM HelloWorld

Hello World In Ada

with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line(“Hello, World!”);
end Hello;

Hello World In TCL

puts “Hello, World!”

Hello World In Scheme

(display “Hello, World!”)
(newline)

Hello World In Prolog

:- initialization(main).
main :- write(‘Hello, World!’), nl.

Hello World In Apex

System.debug(‘Hello, World!’);

Hello World In Solidiy

pragma solidity ^0.4.0;
contract HelloWorld {
function greet() public pure returns (string) {
return “Hello, World!”;
}
}

Hello World In Visual Basic .Net

Module HelloWorld
Sub Main()
Console.WriteLine(“Hello, World!”)
End Sub
End Module

Hello World In Racket

#lang racket
(displayln “Hello, World!”)

Hello World In Ocaml

print_endline “Hello, World!”

Hello World In Small Talk

‘Hello, World!’ displayNl.

Hello World In Action Script

trace(“Hello, World!”);

Hello World In VHDL

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity HelloWorld is
end HelloWorld;
architecture Behavioral of HelloWorld is
begin
process
begin
report “Hello, World!”;
wait;
end process;
end Behavioral;

Relevant Posts You May Like

Hello World In Verilog

module HelloWorld;
initial begin
$display(“Hello, World!”);
$finish;
end
endmodule

Hello World In Crystal

puts “Hello, World!”

Hello World In Assembly (x86)

section .data
msg db “Hello, World!”, 0
section .text
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80
len equ $ – msg

Hello World In Powershell

Write-Output “Hello, World!”

Hello World In PL/SQL

BEGIN
DBMS_OUTPUT.PUT_LINE(‘Hello, World!’);
END;

Hello World In SAS/SCSS

@debug “Hello, World!”;

Hello World In CoffeeScript

console.log “Hello, World!”

Hello World In Clojure

(println “Hello, World!”)

Hello World In Nim

echo “Hello, World!”

Hello World In Rexx

say “Hello, World!”

Hello World In Awk

BEGIN { print “Hello, World!” }

Hello World In Abap

WRITE ‘Hello, World!’.

Hello World In XQuery

Hello, World!

Hello World In Q#

operation HelloWorld() : Unit {
Message(“Hello, World!”);
}

Hello World In Zsh

echo “Hello, World!”

Hello World In PureScript

import Prelude
import Effect.Console (log)
main = log “Hello, World!”

Hello World In D

import std.stdio;
void main() {
writeln(“Hello, World!”);
}

Hello World In Mercury

:- module hello.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
main(!IO) :-
io.write_string(“Hello, World!\n”, !IO).

Hello World In Hack

<?hh
echo “Hello, World!”;

Hello World In Q

“Hello, World!”

Hello World In Idris

main : IO ()
main = putStrLn “Hello, World!”

Hello World In Chapel

writeln(“Hello, World!”);

Hello World In Nemerle

System.Console.WriteLine(“Hello, World!”);

Hello World In J

‘Hello, World!’

Hello World In Rebol

print “Hello, World!”

Hello World In Forth

.” Hello, World!” CR

Hello World In Icon

procedure main()
write(“Hello, World!”)
end

Hello World In Bosqua

namespace NSMain;
entrypoint function main(): String {
return “Hello, World!”;
}

Hello World In Malbolge

(=<‘`~<]:’4Z7<z2Vx\g^U}|uPn m0K9J8BaH9w6Ez5D0l)

Hello World In Brainf*ck

+[—–>++<]>++.+++++++++++++.——-.+++++++++++++++.—.

Hello World In Intercal

PLEASE NOTE “HELLO, WORLD!” PLEASE GIVE UP

Hello World In Lisp

(print “Hello, World!”)

Hello World In XSLT

<xsl:stylesheet version=”1.0″>
<xsl:template match=”/”>
<xsl:text>Hello, World!</xsl:text>
</xsl:template>
</xsl:stylesheet>

Hello World In NIX

let
hello = “Hello, World!”;
in
builtins.trace hello null

Hello World In Agda

module Hello where
open import IO
main : IO Unit
main = putStrLn “Hello, World!”

Hello World In Zig

const std = @import(“std”);
pub fn main() void {
std.debug.print(“Hello, World!\n”, .{});
}

Hello World In Lolcode

HAI 1.2
I HAS A VAR ITZ “Hello, World!”
VISIBLE VAR
KTHXBYE

Hello World In False

[“Hello, World!”] a:1 a;!

Hello World In Thue

a::=Hello, World!

Hello World In Cow

Moo moO MOo mOo MoO MOo Moo Moo MoO moO MOo moo

Hello World In ook

Ook. Ook? Ook. Ook. Ook? Ook! Ook? Ook? Ook. Ook!

Hello World In Unlamda

`r“““““`.H.e.l.l.o. .w.o.r.l.d.!

Hello World In Underload

:H:e:l:l:o:, :W:o:r:l:d:!~

Relevant Posts You May Like

You can find the rest of the Hello World In various programming languages here.

Help Someone By Sharing This Article