Articles

C++ program to print hello world

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:

C++ program to print hello world

 

 


CPP Programs

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  
Please Share this page

Related Articles

Like every other website we use cookies. By using our site you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Learn more Got it!