- Created by: ferrari10118
- Created on: 31-08-18 15:42
Variables and constants
Variables and constants are used to store values in algorithms and programs. Variables can change while a program is running. Constants must not change while a program is running.
Variables and constants have name or identifiers.
Identifiers describe the data being stored.
- Short identifiers are easier to spell correctly each time they are used.
- Long identifiers can be used if they are more descriptive, e.g firstName
Identifiers cannot be the same as…