First program in C++ "Hello World"

 




// Simple C++ Program to display "Hello World"

// Header file for input output function 

#include<iostream>

using namespace std;


// main function -

// where the execution of program begins


int main()

{

// print "Hello World"

cout<<"Hello World";

return 0;

}


OUTPUT

Hello World

DEMO

https://www.youtube.com/watch?v=u9faqyshuPQ&t=41s

No comments:

Post a Comment