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.
"Hello World" Programs for top 10 programming language
One of the first programs that one usually writes when learning the first programming language is "Hello World". Today I’ll show you the top ten programming language you must learn in your life to get never ending career in Computer Programming. We’ll also show you the first program "Hello World" to begin with.
PHP
// Hello World in PHP
echo 'Hello World!';
?>
<html>
<body>
<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>
C#
//Hello World in C#
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
C
/* Hello World in C */
#include
main()
{
printf ("Hello World!\n");
}
Perl
# Hello world in perl
print "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"
Visual Basic .NET (VB.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
No comments:
Post a Comment