Code -
/* There are two ways to print a statement on console in C++
 1. To use the namespace name just before cout.
 2. Write the "using namespace" keyword at the top and the namespace name
*/
#include<iostream>
#include<conio.h>
using namespace std; 
void main()
{
 cout << "\n\n\t\t\t ___Hello World in C++___";
 getch();
}

No comments:
Post a Comment