C++ Output

C++ Output


C++ Output (Print Text)

The cout can be used to output the values of variables, as long the variable has already been defined.  Simply write the name of the variable after the insertion operator as shown below.

Output : 

Another example :

We can add as many cout  as  you want. But we does not insert a new line at the end of the output:

Output: