Program Structure

Declarations: Variables and Constants

Variable Initialization





Variable Initialization

In general, variables that you use as counters and accumulators must be initialized to 0 because all subsequent values are impacted by the initial value. 

Variables that always get their new value from some calculation (and therefore overwrite whatever is stored in their memory location), like circleArea = PI * (radius ^ 2) do not necessarily have to be initialized since the initial value is not used in subsequent calculations.