In C++, variables are used to store data.
Sometimes values are not fixed and need to be entered by the user.
For this purpose, C++ provides the cin statement.
cin is used to take input from the keyboard.
The input value is stored in a variable.
The type of variable decides what kind of data can be stored.
For example, an int variable stores whole numbers,
a double variable stores decimal values,
and a string variable stores text.
To show output on the screen, we use cout.
Using cin and cout makes programs interactive.
User input makes the program more useful and real-world friendly.