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"


0 comments:

Post a Comment

My Instagram