How write Hello World program in 14 different programming languages ?

In this article we take a look how to write Hello World in different programming languages.

HTML

<html>

<head>
<title>Hello World Example</title>
</head>

<body>
<p>Hello World !!</p>
</body>
</html>

JavaScript

console.log("Hello World !!");

CSS

body {
content: "Hellow world";
}

C

#include<stdio.h>
#include<conio.h>
void main(){
clrscr();
printf("Hello World !!");
getch();
}
C++
#include <iostream.h>
void main() {
   cout<<"Hello World!";
}

Python

print('Hello, world!')

node js

console.log("Hello World !!");

PHP

<?php 
echo "Hello World!!"; 
?>

PERL

use strict;
use warnings;
print("Hello World !!"); 

SQL

select "Hello World";

Linux / Windows Script

echo "Hello World";

C#

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

Scala

object Hello {
    def main(args: Array[String]) = {
        println("Hello, World !!")
    }
}

Java

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

Leave a Reply

Your email address will not be published. Required fields are marked *