1st C++ Program [Printing Hello World]

This is the first basic program in c++ on “How to print Hello World” in c++

We use iostream.h for the basic functions in c++ like we used stdio.h in c.

We will be displaying program which is compatible with Dev C++.

You can download dev c++ from here

 

Program Code:

 

#include<iostream.h>
#include<conio.h>
using namespace std;
int main()
{
cout<<"Hello World";
getch();
}

 

Output:

Hello World P-1

 

Leave a Reply

Your email address will not be published.