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. When writing programs, it is 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 initially assigned, hence the name "variable". Variables ...