HELLO WORLD!

The very famous “Hello World!” Program in all the different (computer) languages I know:

(1) C:

#include<stdio.h>

int main()

{

printf(“Hello World!”);

return(0);

}

(2) C++:

#include<iostream>

using namespace std;

int main()

{

cout<<”Hello World!”;

return(0);

}

(3) Python:

#!/usr/bin/env python

print “Hello World!”

[Keep watching this space, I'll add more here]

One response

31 03 2010
punit

java:
public class HelloWorld{
public static void main(){
System.out.println(“Hello World”);
}
}

c#:
public class HelloWorld{
public static void main(){
Console.WriteLine(“Hello World”);
}
}

javascript:
document.write(“Hello World”);

html:
Hello World

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.