Hello World In 70 Different Programming Languages

When you learn a new programming language, the first thing you will do is to display Hello World message. Here you will learn to write hello world program in 70 different programming languages

Hello World In 70 Different Programming Languages
hello-world

In this article, you will learn about how to write a hello world program in 70 different programming languages.

When you learn a new programming language, the first thing you will do is to display the Hello World message. Hello, World program may vary in different programming languages, in low-level languages like Java, C, C++ Hello World program is written in many lines, while in scripting languages like Python, PHP, Perl Hello World program can be written insingle line.

Ada

Ada was originally designed by a team of French computer scientist Jean Ichbiah between 1977 to 1983. Ada was extended from Pascal and other programming languages. Ada is an object-oriented high-level programming language. Ada is a cross-platform language. The filename extension for Ada is .ads, .adb.

Hello World Program:

with Ada.Text_IO;
procedure Hello_World is
 use Ada.Text_IO;
begin
 put_line("Hello World");
end;

AppleScript

AppleScript was developed by Apple Inc. It was released in Oct 1993. AppleScript is a Scripting language and was first introduced in System 7. It support only on macOS.

Hello World Program:

display dialog "Hello World"

ActionScript

ActionScript was developed by Macromedia Inc in 1998. ActionScript is an object-oriented programming language. The filename extension is .as.

Hello World Program:

package
{
public class Helloworld
{
public function Helloworld()
{
trace("Hello World");
}
}
}

Arduino

Arduino Script was developed by Arduino.cc. Arduino was written in Java, C, C++. Arduino is a cross-platform language.

Hello World Program:

void setup() {
  Serial.begin(9600);
  Serial.println("Hello World!");
}
void loop()
{
}

Assembly x86

x86 Assembly language was developed in 1972. x86 Assembly language is used to produce object code for x86 class processors.

Hello World Program:

.model tiny
.code
org 100h
main proc
 mov ah,9
 mov dx,offset hello_message
 int 21h
 retn
hello_message db 'Hello World'
main endp
end main

Autolt

Autoit was designed by Jonathan Bennett in 1999. Autoit is an object-oriented programming language. It is for Microsoft Windows.

Hello World Program:

#include <MsgBoxConstants.au3>
MsgBox(0, "", "Hello, world!")

Algol

Algol was designed by Niklaus Wirth, Tony Hoare in 1966.

Hello World Program:

BEGIN
DISPLAY(""Hello World)
END

B

B was developed by Ken Thompson and Dennis Ritchie at Bell Labs in the year 1969. B is designed for machine-independent applications, such as system and language software.

Hello World Program:

main()
{
putstr ("Hello World");
return(0);
}

Bash

Bash was originally designed by Brain Fox and it was released in 1986. Bash is a Uni shell and command language.

Hello World Program:

echo -e "Hello World"

Basic

Basic was designed by John G. Kemeny and Thomas E. Kurtz and it was released in 1964.

Hello World Program:

PRINT "Hello World"
END

Boo

Boo was designed by Rodrigo B. De Oliveira and it was released in 2003. Boo is an object-oriented programming language.

Hello World Program:

print "Hello World"

C

C was developed by Dennis Ritchie at Bell Labs between 1972 and 1973. C is a procedural programming language. C is one of the most popular programing language.

Hello World Program:

#include<stdio.h>
int main(void)
{
  printf("Hello world");
  return 0;
}

C++

C++ was developed by Bjarne Stroustrup at AT&T Bell Labs in 1985. C++ is an object-oriented programming language.

Hello World Program:

#include <iostream>
using namespace std;
int main()
{
    cout <<"Hello World"<< endl;
    return 0;
}

C#

C# was developed by Anders Hejlsberg in 2000. C# is an object-oriented programming language.

Hello World Program:

using System;
namespace HelloWorld
{
    class HelloWorld
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World");
        }
    }
}

Cobol

Cobol was designed by Howard Bromberg, Norman Discount, Vernon Reeves, Jean E. Sammet, William Selden and Gertrude Tierney in 1956.

Hello World Program:

IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
PROCEDURE DIVISION.
 DISPLAY 'HELLO WORLD'.
 STOP RUN.

ColdFusion

ColdFusion was developed by Adobe System in 1995. ColdFusion was written in Java.

Hello World Program:

<cfscript>
 variables.greeting = "Hello World";
 WriteOutput(variables.greeting);
</cfscript>

Clojure

Clojure was designed by Rich Hickey in 2007.

Hello World Program:

(defn -main ;
  [& args] ;
  (println "Hello, World!")) ;

CoffeeScript

CoffeeScript was designed and developed by Jeremy Ashkenas in 2009.

Hello World Program:


alert 'Hello World'

Caml

Caml was designed by Gerard Huet, Guy Cousineau, Ascander Suarez, Pierre Weis, Michel Mauny and Xavier Leroy in 1985.

Hello World Program:

print_string "Hello World";;

Ceylon

Ceylon was designed by Gavin King in 2011. Ceylon runs on Java Virtual Machine.

Hello World Program:

void hello()
{
print("Hello World");
}

D

D was designed by Walter Bright and Andrei Alexandrescu in 2001. D is an object-oriented programming language.

Hello World Program:

import std.stdio;
void main()
{
writeln("Hello World");
}

Dart

Dart was designed by Lars Bak and Kasper Lund and developed by Google in 2011. Dart is an object-oriented programming language.

Hello World Program:

void main() {
  print('Hello World!');
}

Delphi

Delphi was developed by Embarcadero Technologies. Delphi is a high-level programming language. Delphi is based on Pascal language.

Hello World Program:

program HeloWorld;
begin
 Writeln('Hello World');
end.

Eiffel

Eiffel was designed by Bertrand Meyer in 1986. Eiffel is an object-oriented programming language.

Hello World Program:

class
 Hello_World
create
 make
feature
 make
  do
   print("Hello World")
  end
end

Erlang

Erlang was designed by Joe Armstrong, Robert Virding and Mike Williams in 1986. Erlang is a functional programming language.

Hello World Program:

io:format("~n", ["Hello World"])

Forth

Forth was designed by Charles H. Moore in 1970. Forth is an stack-oriented programming language.

Hello World Program:

: HELLO (--) ."Hello World" CR;
HELLO

Fortran

Fortran was designed by John Backus in 1957. Fortran is an object-oriented programming language.

Hello World Program:

program hello
 print *, 'Hello World'
end program hello

F#

F# was designed by Don Syme in 2005. F# is an object-oriented programming language.

Hello World Program:

printfn "Hello World"

Fortress

Fortress was created by Sun Microsystem in 2006.

Hello World Program:

component hello
export Executable
run() = println(“Hello, World!”)
end

FreeBASIC

FreeBASIC was designed by Andre Victor in 2004. FreeBASIC is an object-oriented programming language.

Hello World Program:

Print "Hello World"

Go

Go was designed by Robert Griesemer, Rob Pike, and Ken Thompson at Google at 2009. Go is an object-oriented programming language.

Hello World Program:

package main
import "fmt"
function main()
{
fmt.pritln("Hello World")
}

Genie

Genie was designed by Jamie McCracken at 2008. Genie is an object-programming language.

Hello World Program:

init
    print "Hello, world!"

Haskell

Haskell was developed by Kevin Hammond in 1990.

Hello World Program:

main = putStrLn "Hello World"

Hack

Hack was developed by Facebook in 2014. Hack is an open-source scripting language.

Hello World Program:

function main(): void
{
  echo 'Hello, World!';
}

Haxe

Haxe was developed by Haxe Foundation in 2005. Haxe is an cross-platform programming language. It can be compiled into C++, C#, Java, JavaScript, Python, PHP, JVM, Jode.js and Lua.

Hello World Program:

class Main()
{
static function main()
{
trace("Hello World");
}
}

HTML

HTML first version was written by Tim Berners-Lee in 1993.

Hello World Program:

<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>

HyperTalk

HyperTalk was designed by Dan Winkler and developed by Apple Computer Inc in 1987. HyperTalk is an procedural programming language.

Hello World Program:

answer "Hello world"

Icon

Icon was designed by Ralph Griswold in 1977. Icon is an structured programming language.

Hello World Program:

procedure main()
    write("Hello world")
end

jQuery

jQuery was created by John Resig in 2006 at BarCamp NYC.

Hello World Program:

$("body").append("Hello world!");

Java

Java was designed by James Gosling in 1995. Java is an object-oriented programming language. Java is used to develop Android application’s. It is one of the most popular programming language.

Hello World Program:

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

JavaScript

JavaScript was developed by Microsoft in 1996. JavaScript is used in Microsoft’s Internet Explorer.

Hello World Program:

console.log('Hello World');

Julia

Julia was designed by Jeff Bezanson, Alan Edelman, Stefan Karpinski and Viral B. Shah in 2012. Julia is a dynamic programming language.

Hello World Program:

println("Hello, World!")

Kotlin

Kotlin was designed and developed by JetBrains in 2011. Kotlin is an object-oriented programming language.

Hello World Program:

fun main(args: Array<String>)
{
print("Hello World")
}

Lisp

Lisp was designed by John McCarthy in 1958. Lisp is an procedural programming language.

Hello World Program:

(princ "Hello World")

Logo

Logo was developed by Bolt, Beranek and Newman in 1967. Logo is an functional programming language.

Hello World Program:

print [Hello World]

Lua

Lua was designed by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes in 1993. Lua is an object-oriented programming language.

Hello World Program:

print("Hello World")

ML

ML was developed by Robin Milner in 1970. ML is an functional programming language.

Hello World Program:

print "Hello World";

MatLab

MatLab was developed by MathWorks in 1984. MatLab was written in C and C++. MatLab is an object-oriented programming language.

Hello World Program:

disp('Hello world')

Maple

Maple was developed by Waterloo Maple in 1980. Maple was written in C, Java.

Hello World Program:

>> printf("Hello World");

Nim

Nim was designed by Andreas Rumpf in 2005. Nim is an object-oriented programming language.

Hello World Program:

echo "Hello World"

Objective-C

Objective-C was designed by Tom Love and Brad Cox in 1984. Objective-C is an object-oriented programming language.

Hello World Program:

#import<stdio.h>
#import<Foundation/Foundation.h>
int main(void)
{
NSLog(@"Hello World");
return 0;
}

OCaml

OCaml was developed by INRIA in 1996. OCaml is an object-oriented programming language.

Hello World Program:

print_string "Hello World";;

Octave

Octave was developed by John W. Eaton and others in 1988. Octave is a high-level programming language.

Hello World Program:

printf("Hello World");

Python

Python was designed by Guido van Rossum in 1991. Python is an object-oriented programming language. Python is one of the most popular programming languages.

Hello World Program:

print("Hello World")

PHP

PHP was designed by Rasmus Lerdorf in 1995. PHP is an object-oriented programming language. PHP is a server-side programming language.

Hello World Program:

<?php
echo 'Hello World';
?>

Perl 5

Perl was designed by Larry Wall in 1987. Perl is an object-oriented programming language.

Hello World Program:

use v5.10;
say 'Hello World';

Pascal

Pascal was designed by Niklaus Wirth in 1970. Pascal is a structured programming language.

Hello World Program:

program HelloWorld;
begin
 WriteLn('Hello World');
end.

Prolog

Prolog was designed by Alain Colmerauer and Robert Kowalski in 1972. Prolog is a logic programming language.

Hello World Program:

Write('Hello World'), nl.

Processing

Processing was designed by Casey Reas and Ben Fry in 2001. Processing is an object-oriented programming language.

Hello World Program:

void setup()
{
  println("Hello world");
}

QuakeC

QuakeC was designed by John Carmack in 1996. QuakeC is a structured programming language.

Hello World Program:

bprint("Hello World\n");

Ruby

Ruby was designed by Yukihiro Matsumoto in 1995. Ruby is an object-oriented programming language.

Hello World Program:

puts "Hello World"

Rebol

Rebol was designed by Carl Sassenrath in 1997. Rebol is a functional programming language.

Hello World Program:

print "Hello World"

Rust

Rust was designed by Graydon Hoare in 2010. Rust is an functional programming language.

Hello World Program:

fn main()
{
println("Hello World");
}

Swift

Swift was developed by Apple in 2014. Swift is an object-oriented programming language.

Hello World Program:

println("Hello World")

Scheme

The scheme was designed by Guy L. Steele and Gerald Jay Sussman in 1975. The scheme is a functional programming language.

Hello World Program:

(display "Hello world")(newline)

SQL

SQL was designed by Donald D. Chamberlin and Raymond F. Boyce in 1974. It is useful in handling structured data.

Hello World Program:

CREATE TABLE message (text char(15));
INSERT INTO message(text) VALUES ('Hello World');
SELECT ext FROM message;
DROP TABLE message;

Scala

Scala was designed by Martin Odersky in 2004. Scala is an object-oriented programming language.

Hello World Program:

object Helloworld extends App
{
println("Hello World")
}

TCL

TCL was designed by John Ousterhout in 1988. TCL is an object-oriented programming language.

Hello World Program:

puts "Hello World"

TypeScript

The typeScript was designed and developed by Microsoft in 2012. TypeScript is a functional programming language.

Hello World Program:

console.log("Hello World");

Visual Basic

Visual Basic was developed by Microsoft in 1991. Visual Basic is an object-based programming language.

Hello World Program:

Public Sub Main()
 Debug.Print "Hello World"
End Sub