Lesson 5. Working with Expressions, Statements, and Operators

At its heart, a program is a set of commands executed in sequence. These commands are programmed into expressions and statements and use operators to perform specific calculations or actions.

In this lesson, you learn

Image What statements are

Image What blocks or compound statements are

Image What operators are

How to perform simple arithmetic and logical operations


Languages—spoken or programmed—are ...

Get Sams Teach Yourself C++ in One Hour a Day, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.