4.18.2016

How to write 'Hello World' in different programming languages






It is quite interesting to learn one or more programming languages in order to beable to write your own scripts, softwares and more, but before you venture into learning any of the programming languages, you must somewhat consider how much important and popular the programming language is that you are about learning in order to have a wider market for your softwares if you would later go into full time software development.


Most of the programming language have same methodology and almost similar to each other. If you learn PHP you can easily understand C and vice versa and same with others, because they are totally related to each other.

This is the usual norm observed while learning any programming language. One of the first programs that one usually writes when learning their first programming language is “Hello World”. In this post, i’ll show you how to output that sumple text in the top ten programming languages. This is very useful if you wish to excel in your computer programming career. You sure won’t regret checking out this post, it really is great. Let me start out the tutorials, please read carefullyas this post is made easy to understand.

Related: Explain how a programmer thinks to a non-programmer

PHP


<?php// Hello World in PHP
echo 'Hello World!';
?>

C#


//Hello World in C#
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}

JavaScript


<html>
<body>
< language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>

Perl


# Hello world in perl
print "Hello World!\n";

C


/* Hello World in C */
#include <stdio.h>
main()
{
printf ("Hello World!\n");
}

Ruby


# Hello World in Ruby
puts "Hello World!"

Java


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

Python

# Hello World in Python
print "Hello World"

VisualBasic.NET

'Hello World in Visual Basic .NET (VB.NET)
Imports System.Console
Class HelloWorld
Public Shared Sub Main()
WriteLine("Hello, world!")
End Sub
End Class

If you successfully performed the programming practice, you must have seen the Hello Word outputed for your in your programming window screen, and I hope you now see how this different programming languages are related to each other.

If this post was really helpful to you, you can share this post with friends and also subscribe to our feeds with the form below.

Wow, you are now on your way to becoming one of the best programmers.





No comments:

Post a Comment