Hello World Program in Eight Different Popular Programming Languages

This fact is true that Hello World program is the first
program that a programmer writes when he/she start learning a new programming language. Today I thought that I should share the hello world program in
different languages. A video is also added for easy understanding of the programs. Let’s
take a look on these programs.

Hello World Program in Eight Different Popular Programming Languages

Hello World Program in Java

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

Hello World Program in C

#include<stdio.h>

main()
{
    printf(“Hello World”);

}

Hello World Program in C++

#include <iostream>

int main()
{
    std::cout << “Hello, world”;
}

Hello World Program in Javascript

<script>

window.onload = function()
{
     document.getElementById(‘result’).innerHTML = “Hello World”;
}

</script>

<div id=”result></div>

Hello World Program in HTML

<p>Hello World</p>

Hello World Program in Python

print “Hello World”

Hello World Program in Perl

print “Hello World”

Hello World Program in Ruby 

puts “Hello World”

Source: http://blog.learntoprogram.tv/hello-world-eight-languages/

2 thoughts on “Hello World Program in Eight Different Popular Programming Languages

  1. Naneski

    HTML is not a programming language. The "M" stands for "Markup".
    Generally, a programming language allows you to describe some sort of process of doing something, whereas HTML is a way of adding context and structure to text.

    Reply

Leave a Reply

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