/Hello-world

Hello World” Program In Different Languages

“Hello World” Program In 24 Different Languages

C language

#include <stdio.h>

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

C++ language

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

Python language

print("Hello World")

C# language

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

Java Language

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

Go Language

println('Hello World");

Javascript language

console.log("Hello World");

HTML Language

<!DOCTYPE html>
<html>
    <head>
    </head>
    <body>
         <h1>Hello World</h1>
    </body>
</html>

Bash (Unix Shell)

echo "Hello World"

Fortran Language

program helloworld
    print *, "Hello World"
end program helloworld

TypeScript Language

console.log 'Hello World'

Perl Language

#!/usr/bin/perl
print "Hello World";

Algol Language

BEGIN DISPLAY("Hello World") END.

PHP Language

echo "Hello World";

Kotlin Language

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

Swift Language

println('Hello World');

R Language

cat('Hello World')

Assembly Language

global _main
    extern _printf

    section .text
_main:
    push    message
    call    _printf
    add        esp, 4
message:
    db    'Hello World', 10, 0

Ruby Language

puts 'Hello World'

Pascal Language

program Hello;
begin
  writeln ('Hello, world.');
end.

Haskell Language

module Main where

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

Matlab Language

disp('Hello World');

Scala Language

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

Cobol Language

IDENTIFICATION DIVISION.
PROGRAM-ID. Hello-world.
PROCEDURE DIVISION.
    DISPLAY "Hello World".



🎉 🎊 😃 Happy Coding! 😃 🎊 🎉