20 “Hello World” programs to say the world “hello”!
I landed on the blogosphere five years back!,ya precisely on 15 june 2005.it was hard for me to be a pro then.i just sit on the back stage and enjoyed the scene.and now i also know how backstage looks like.
But,here i am ready to be a pro.yup,looking seriously in to blogging.let me start with saying hello!. Ya,”hello world”.
The below languages are chosen from the TIOBE Programming Community Index for August 2010
Java
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, world!");
}
}
C
#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}
C++
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "Hello, World!\n";
}
Visual Basic
Private Sub Form_Load() ' Execute a simple message box that will say "Hello, World!" MsgBox "Hello, World!" End SubC#
class HelloWorldApp { static void Main() { System.Console.WriteLine("Hello, world!"); } }Python
import sys sys.stdout.write("Hello, world!")Perl
print "Hello, world!\n";Objective C (Procedural C Version)
#import <stdio.h> int main (int argc, const char *argv[]) { printf ("Hello, world!\n"); return 0; }Delphi
program ObjectPascalExample; type THelloWorld = class procedure Put; end; procedure THelloWorld.Put; begin Writeln('Hello, World!'); end; var HelloWorld: THelloWorld; { this is an implicit pointer } begin HelloWorld := THelloWorld.Create; { constructor returns a pointer } HelloWorld.Put; HelloWorld.Free; { this line dereferences the pointer } end.JavaScript
document.writeln('Hello, World!');Ruby
class String def say puts self end end'Hello, world!'.sayPL/SQL
set serveroutput on size 1000000; -- this is a SQL*Plus command to enable the output buffer begin dbms_output.put_line('Hello, world!'); end;SAS
data _null_; put 'Hello, world!'; run;MATLAB
disp('Hello, world!')Lisp
(format t "Hello, world!~%")Pascal
program hello; begin Writeln('Hello, world!'); end.ABAP - SAP AG
REPORT ZELLO. WRITE 'Hello, world!'.RPG
/FREE DSPLY 'Hello, world!'; *InLR = *On; /END-FREEGO
package main import "fmt" func main() { fmt.Printf("Hello, world!") }
No related posts.
















Man, this is awesome, Are you a multl language programmer? Or got them from net?
Ramkumar My Latest blog post :FolderLock Software to password protect your files
not really i just want to show a collection,and a mark of my start.:)
What does Delta in Position and Status refer to in here? The popularity of language or something else !
Nice post though.
reffer this link – http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html