06 August 2010 ~ 4 Comments

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

Capture 292x300 20 Hello World programs to say the world hello!

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 Sub

C#

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!'.say

PL/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-FREE

GO

package main

import "fmt"

func main() {
  fmt.Printf("Hello, world!")
}

pixel 20 Hello World programs to say the world hello!

No related posts.

4 Responses to “20 “Hello World” programs to say the world “hello”!”

  1. Ramkumar 28 August 2010 at 6:57 pm Permalink

    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 filesMy ComLuv Profile

  2. Ashwin 29 August 2010 at 6:43 am Permalink

    not really i just want to show a collection,and a mark of my start.:)

  3. Ankit 6 September 2010 at 3:16 am Permalink

    What does Delta in Position and Status refer to in here? The popularity of language or something else !

    Nice post though.

  4. Ashwin 6 September 2010 at 1:17 pm Permalink

    reffer this link – http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html


Leave a Reply

CommentLuv Enabled