Variables
Variables store data values. C++ provides clear rules for declaring and updating variables.
- Declare variables using C++ conventions
- Choose meaningful names
int x = 5;
int y = 10;
std::cout << x + y;Try it Yourself
Run this CPP example in your local environment or course sandbox.