C++ Syntax
Every C++ program has rules for how statements are written and executed.
- Follow C++ syntax rules for statements and blocks
- Use comments to document code
- Run examples in the Try it editor
Example
int x = 5;
int y = 10;
std::cout << x + y;Try it Yourself
Run this CPP example in your local environment or course sandbox.