Write A Simple Program To Print "Hello print" in cpp or c++

Write A Simple Program To Print "Hello print" in cpp or  c++

Write A Simple Program To Print "Hello print" in cpp or  c++


 #includes<iostream>

using namespace std;

void  main()

{

cout<<"Hello world";

}


Output:

Hello world


Explanation :

In a program at first step we have take preprocessor or we take header file iostream.h 

After that we will take main () function from this main function of program will execute

Now it will jump to cirly braces inside that we took cout function

In cpp cout function is used to display output message on display.   

 

Post a Comment (0)
Previous Post Next Post