” Hello World ” in different languages

In This Post,I will post about  ” Hello World ” in different languages. 
That would be very interesting !
There are many of high level programming languages.
Among Them, Python , PHP , Perl , HTML , JavaScript , Ruby , C , C++ , C# , Java and Objective-C are the most popular !
What is Programming ?
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms.

 

JavaScript
JavaScript (https://developer.mozilla.org/en/javascript/) is a pro-
gramming language that is usually used inside web pages but is
increasingly being used for game programming. The syntax is basi-
cally similar to Java, but perhaps it’s a little easier to get started
with JavaScript. (You can create a simple HTML page that con-
tains a JavaScript program and run it inside a browser without
needing a shell, command line, or anything else.) A good place to
start learning JavaScript might be Codecademy at http://www
.codecademy.com/.
A “Hello World” example in JavaScript will be different depend-
ing on whether you run it in a browser or in a shell. In a shell, the
example looks like this:
print(‘Hello World’);
In a browser, it might look like this:
<html>
<body>
<script type=”text/javascript”>
alert(“Hello World”);
</script>
</body>
</html>

Perl
The Perl programming language (http://www.perl.org/) is avail-
able for free for all major operating systems. It’s usually used for
developing websites (similar to PHP).
Here’s an example of Hello World in Perl:
print(“Hello Worldn”);

Ruby
Ruby (http://www.ruby-lang.org/) is a free programming language
available on all major operating systems. It’s mostly used for creat-
ing websites, specifically using the framework Ruby on Rails. (A
framework is a set of libraries supporting the development of spe-
cific types of applications.)
Here’s an example of Hello World in Ruby:
puts “Hello World”

Objective-C
Objective-C (http://classroomm.com/objective-c/) is very similar to
C (in fact, it’s an extension of the C programming language) and
most commonly used on Apple computers. It’s the programming
language for the iPhone and iPad.
Here’s an example of Hello World in Objective-C:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (@”Hello World”);
[pool drain];
return 0;
}

PHP
PHP (http://www.php.net/) is a programming language for
building websites. You will need a web server (software used to
deliver web pages to a web browser) with PHP installed, but all
the software required is freely available for all the major operating
systems. In order to work with PHP, you will need to learn HTML
(a simple language for building web pages). You can find a free
PHP tutorial at http://php.net/manual/en/tutorial.php, and an
HTML tutorial at http://www.w3schools.com/html.
e.g
<?php
echo “Hello Worldn”;
?>

C#
C# (http://msdn.microsoft.com/en-us/vstudio/hh388566/), pro-
nounced “C sharp,” is a moderately complicated programming
language for Windows that is very similar to Java. It’s a bit easier
than C and C++.
Here’s an example of Hello World in C#:
public class Hello
{
public static void Main()
{
System.Console.WriteLine(“Hello World”);
}
}

HTML   ( Hyper Text Marketing Language )
<html>
<body>
<p>Hello World</p>
</body>
</html>

C/C++
C (http://www.cprogramming.com/) and C++ (http://www
.stroustrup/C++.html) are complicated programming languages
that are used on all operating systems. You’ll find both free and
commercial versions available. Both languages (though perhaps
C++ more than C) have a steep learning curve. For example, you’ll
find that you need to manually code some features that Python pro-
vides (like telling the computer that you need to use a chunk of
memory to store an object). Many commercial games and game
consoles are programmed in some form of C or C++.

C
#include <stdio.h>
int main ()
{
printf (“Hello Worldn”);
}

C++
#include <iostream>
int main()
{
std::cout << “Hello Worldn”;
return 0;
}

Java
Java (http://www.oracle.com/technetwork/java/index.html) is a
moderately complicated programming language with a large built-
in library of modules (called packages). A lot of free documentation
is available online. You can use Java on most operating systems.
Java is also the language used on Android mobile phones.
e.g
public class HelloWorld {
public static final void main(String[] args) {
System.out.println(“Hello World”);
}
}

Python
Python is a widely used general-purpose, high-level programming language.Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++. The language provides constructs intended to enable clear programs on both a small and large scale.Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts. Using third-party tools, such as Py2exe or Pyinstaller,Python code can be packaged into standalone executable programs. Python interpreters are available for many operating systems.
e.g
>>>print(“Hello World”)

error: Content is protected !!