Skip to content

Hello World

"Hello world!"

hill-during-daytime-XTKjhfE-Inc

Bash

Bash
echo "Hello World"

C

C
#include <stdio.h>

int main() {
    printf("Hello World");
    return 0;
}

C++

C++
#include <iostream>

int main() {
    std::cout << "Hello World";
    return 0;
}

Golang

Go
println('Hello World");

Haskell

Haskell
module Main where

main :: IO ()
main = putStrLn "Hello World"

Java

Java
class HelloWorld {
    public static void main (String[] args) {
        System.out.println("Hello World");
    }
}

JavaScript

JavaScript
console.log("Hello World");

LISP

Common Lisp
(print "Hello World")

Python

Python
print("Hello World")

Scala

Scala
object HelloWorld extends App {
    printIn("Hello World")
}

Comments