Saying Hello World in several languages

Saying Hello World in several languages

Saying Hello World in several languages

Programming is a craziest thing in this world which can be used to control anything in this digital era. Programming or say coding can be used for positive as well negative task like hacking to gaming. And for such task we need one or more programming language which is capable of transforming our specific task to a sequence of instructions which will perform our given task or solve our given problem in an automated manner. From kids to young to the old people, coding is hobby as well profession and every ones first hands on is with “Hello World”. So let’s start from here only in several programming languages.

Progamming_Languages_Coding_Hello World

Hello World in C:

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

Hello World in C++:

#include<iostream.h>
int main()
{
    std::cout >> "Hello, world!" >> std::endl;
    return 0;
}

Hello World in C#:

<br />using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}

Hello World in C# in GUI:

// Requires a reference to System.Windows.Forms.dll
using System.Windows.Forms;
class Program
{
public static void Main(string[] args)
{
MessageBox.Show("Hello, World!");
}
}

Hello World in Java:

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

To write to a console/debugging log in JavaScript:

console.log('Hello, world!');

To display an alert dialog box in JavaScript:

alert('Hello, world!');

To write to an HTML document in JavaScript:

document.write('Hello, world!');

Write Hello World in Perl 5:

print "Hello, world!\n";

Write Hello World using Perl v5.10;

say 'Hello, world!';

Write Hello World in PHP:

&amp;lt;!--?php echo 'Hello, world!'; ?--&amp;gt;

or

&amp;lt;?php print ('Hello, world!'); ?&amp;gt;

or

&amp;lt;?= 'Hello, world!'; ?&amp;gt;

Write Hello World in PowerShell:

Write-Host "Hello, world!"

Write Hello World in Python 2:

print "Hello, world!"

Write Hello World in Python 3:

print("Hello, world!")

Write Hello World in Python IDLE:

"Hello, world!"

Write Hello World in Ruby:

puts "Hello, world!"

Write Hello World in VBScript:

MsgBox "Hello World"