codeGK
Code it ALL
C++ Print - CodeGK
♦ C++ Print

♣ About C++ Print

Printing means getting graphical output on computer screen.
Print can be used to print the variable values, which are totally in control of program.
Print also act as a powerful debugging tool, which helps developer where they went wrong.

♣ C++ Print Syntax

Below is the representation of Printing Syntax.
Basic Syntax
cout<< VariableName ;
Syntax Explanation:
VariableName : name of the variable to be printed

♣ Example1: String Printing in C++

In this example, two strings are printed.
Example
Input:
Output:

♣ Example2: Number Printing in C++

In this example, a number is printed.
Example
Input:
Output:

♣ Example3: Subtraction Printing in C++

In this example, subtraction of two number is printed.
Example
Input:
Output:
Prev_LessonNext_Lesson