Thursday, September 30, 2010

Hello World in C++


/**
  * C++ program to print "Hello World" on the screen
  */

#include <iostream.h>

int main(void)
{
  cout<<"Hello World\n";

  return 0;
}

Wednesday, September 29, 2010

Hello World in C


/**
  * C program to print "Hello World" on the screen
  */

#include <stdio.h>

int main(void)
{
  printf("Hello World\n");

  return 0;
}