cout command

cout << "Str_1" << Var_1 <<…<< endl;

(Prints items listed between cout and endl)

Example:

cout << "the value of X is" << X << endl;

In this example, if X equals 5, then the output is: the value of X is 5


Feedback