1#include <iostream>
2
3
4int main(){
5 std::cout <<"Hello World" << std::endl;
6 return 0;
7}
8
1#include<iostream>
2using namespace std;
3
4int main(){
5
6 cout << "Hello World" << endl;
7
8 return 0;
9}
1// Your First C++ Program
2
3#include <iostream>
4
5int main() {
6 std::cout << "Hello World!";
7 return 0;
8}
1// Your First C++ Program
2
3#include <iostream>
4
5int main() {
6 std::cout << "Hello World!";
7 return 0;
8}
9
1#include <iostream> // Include standard library and namespace
2using namespace std; // for c++
3
4int main () // where program starts
5{
6 cout << "Hello World!\n"; // cout (part of std) prints message
7 return 0; // return int because main is of type int
8}
1#include <iostream>
2using std::cout;
3int main()
4{
5 cout<<"Hello world";
6 return 0;
7}
80
9