#include <iostream>
 
using namespace std;
 
int main() {
	cout << "Hello World" << endl;
	
	return 0;
}

Semicolon Convention (;)

It is convenient to include ; after every statement

Understanding Concepts

#include <iostream> determines to include a section of C++ code, known as header iostream, which allows basic input/output operations

using namespace std - allows elements to be referred from the std (standard) library Alternatively, you could reference std before the element of the namespace in between with :: (without initializing namespace std)

Example:
std::cout >> "Hello World!" >> endl;

int main() { ... } - creates the declaration of the function, essentially allowing collection of code inside the {} to instruct the computer what to do The pair of parenthesis () corresponds to the parameters of the function, which are defined with parameter types and names

return 0 - Returns the exit status of the function. 0 represents successful and other values besides that is an error to the program.