February 2014
Beginner
1248 pages
62h 25m
English
• Counter-controlled repetition (p. 115) uses a variable called a counter (or control variable) to control the number of times a set of statements execute.
• Counter-controlled repetition is often called definite repetition (p. 115), because the number of repetitions is known before the loop begins executing.
• A total (p. 115) is a variable used to accumulate the sum of several values. Variables used to store totals are normally initialized to zero before being used in a program.
• A local variable’s declaration must appear before the variable is used in that method. A local variable cannot be accessed outside the method in which it’s declared.
• Dividing two integers results ...
Read now
Unlock full access