Before learning any Programming Language, you must know how important
and popular the programming language you want to learn is. Because, learning
itself is never a bad idea, we always motivate you to learn new things every day.
If your learning plan is in a managed and well planned way then you’ll never
eat mud in the mid way.
Most of the programming language have the same methodology
and almost similar to each other. If you learn PHP you can easily understand C
and vice versa and the same goes with others, because they are totally related
to each other.
"Hello World" Programs for top 10 Programming
Language
One of the first programs that is usually written when learning the first programming language is "Hello World". Today, you will get to know the top ten Programming Languages you must learn in your life to get never ending career in Computer Programming. You will also know the first program "Hello World" to begin with.
One of the first programs that is usually written when learning the first programming language is "Hello World". Today, you will get to know the top ten Programming Languages you must learn in your life to get never ending career in Computer Programming. You will also know the first program "Hello World" to begin with.
PHP
<?php
// Hello World in PHP
echo 'Hello World!';
?>
// Hello World in PHP
echo 'Hello World!';
?>
C#
//Hello World in C#
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
JavaScript
<html>
<body>
<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>
<body>
<script 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";
print "Hello World!\n";
C
/* Hello World in C */
#include <stdio.h>
main()
{
printf ("Hello World!\n");
}
#include <stdio.h>
main()
{
printf ("Hello World!\n");
}
Ruby
# Hello World in Ruby
puts "Hello World!"
puts "Hello World!"
Java
// Hello World in Java
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
Python
# Hello World in Python
print "Hello World"
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
Imports System.Console
Class HelloWorld
Public Shared Sub Main()
WriteLine("Hello, world!")
End Sub
End Class
These were just the introduction and as you can see, they are
common to each other just to print "hello World" in your program
window.
0 comments:
Post a Comment