Oct 17, 2010

“Hello World” Programs for top 10 programming language

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

C#

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

JavaScript





Perl

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

C

/* Hello World in C */
#include
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
Related Posts Plugin for WordPress, Blogger...