Chapter 2. Primitive Data Types, Arrays, Loops, and Conditions
- Common operators, such as
- Flow control statements, such as loops and if-else conditions
Variables are used to store data; they are placeholders for concrete values. When writing programs, it's convenient to use variables instead of the actual data, as it's much easier to write
pi instead of
3.141592653589793, especially when it happens several times inside your program. The data stored in a variable can be changed after it was ...