C++ program to print hello world
In this chapter of C++ program tutorial, our task is to :
-
write a c++ program to print HELLO WORLD
C++ program to print Hello World
Given below is a C++ program which prints "HELLO WORLD" on the console
#include<iostream>
using namespace std;
int main()
{
cout<<"HELLO WORLD"<<endl;
return 0;
}
OUTPUT :
HELLO WORLD
EXPLANATION:
In the above c++ program to print hello world:
-
The execution starts from the main function (here int main()).
-
The "cout" in C++ makes the output of whatever is written in the double quotes as it is.
You can see the above code execution and output in codeblocks IDE:
Would you like to see your article here on tutorialsinhand.
Join
Write4Us program by tutorialsinhand.com
About the Author
Sayantan Bose
- š Iām currently working on DS Algo skills
- š± Iām currently learning web develeopement
- šÆ Iām looking to collaborate with Oppia
- š« Reach me at https://www.linkedin.com/in/sayantan-bose-14134a1a6/
- š Pronouns: his/him
Page Views :
Published Date :
Dec 20,2020