how to print hello world cpp code example
Example 1: c++ code to print hello world
#include<iostream>
using namespace std;
int main(){
cout << "Hello World" << endl;
return 0;
}
Example 2: print hello world c++
#include <iostream>
using namespace std;
main() {
cout << "Hello world" << endl;
}