Professional Documents
Culture Documents
#include <iostream>
using namespace std;
int main(){
cout<<"Hello World";
int main ()
A function is the main entity where all of the functionality of a program is defined. A
function takes some input, processes it according to the some code written in the
function body and produces an output which can be either sent to the user or can be
used by other functions.
cout<<"Hello World";
When this statement is executed, it sends the string between the quotation
marks to the standard output stream object – cout.
cout is a predefined object in C++ and the standard output stream is
normally the screen.
User Screen
Monitor
Or
Press F11
(shortcut key for Compile & Run)