Saturday 21 November 2015

Program to print Hello World

// Program to print any text/string on the output screen
#include<stdio.h> // to load the standard input output library
#include<conio.h> // to load the console input output library

void main() // execution of any program starts from here
{
      clrscr(); //used to clear the console screen
      printf("Hello World"); // printf() is used to print on screen
      getch(); // to hold the output screen
}

No comments:

Post a Comment