answersLogoWhite

0

#include<iostream>

in main() {

std::cout << "Hello World\n";

}

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What is a sample code for C plus plus?

Copy and paste this and it will say hello world! #include &lt;iostream&gt; int main() { std: :cout &lt; &lt; "Hello, world!\n ";


What is the role of plus operator between two string constant?

The plus operator between string constants allows string concatination: string a = "Hello, "; string b = "World!"; string c = a + b; The output of c would be: "Hello, World!".


Show the simple c plus plus program?

int main (void) { puts ("Hello, world"); return 0; }


C plus plus programs-print a message?

#include&lt;iostream&gt; int main() { std::cout &lt;&lt; "Hello world!\n"; }


Example of Borland c plus plus program?

#include&lt;iostream&gt; int main() { std::cout &lt;&lt; "Hello world!" &lt;&lt; std::endl; }


Where is the Example of a c plus plus code?

#include&lt;iostream&gt; int main() { std::cout &lt;&lt; "Hello world!" &lt;&lt; std::endl; return(0); }


Give the simple demo of Visual C plus plus?

#include&lt;iostream&gt; int main() { std::cout &lt;&lt; "Hello world!" &lt;&lt; std::endl; }


How do you print hello world 100 times in c plus plus using while statment?

C++ Hello World Example:// this is a single line comment /* this is a multi-line comment */ #include // header file needed to print using namespace std; // instead of having to write std::cout // the main function is where the program begins execution int main() { // print Hello world. and a new line cout


How do you wrte aprogramme on c plus plus?

#include&lt;iostream&gt; int main() { using namespace std; cout&lt;&lt;"Hello world!"&lt;&lt;endl; return( 0 ); }


What is literal in c plus plus?

Examples: 1, -1, -2.5, 'a', "Hello", NULL


Give an example of C plus plus program?

#include&lt;iostream&gt; int main() { using namespace std; cout&lt;&lt;"Hello world!"&lt;&lt;endl; return(0); }


Can you use blank lines in your C plus plus Code?

Yes, for example: #include &lt;stdio.h&gt; int main ( int argc, char **argv) {puts ("Hello, world"); return 0; }