Print simple statement

 #include <iostream>

using namespace std;

int main() {
    // std::cout << "hello world";
    /*This way we
    can comment also multiple lines*/
    cout << "Hello World ";
    int sum = 6;
    cout << " Hello World printing number" << sum;
    return 0;
}

Comments

Popular posts from this blog

Control Structures, If Else and Switch Case Statements in C++

Basic Input/Output & More in C++