Counter-controlled while loop
A while loop that is used when you know how many items of data are to be read; the loop will continue until the condition designated by the counter is met or evaluates to false
Decision maker
An expression in an if statement, which determines whether to execute the statement that follows it
Divisor
Suppose that m and n are integers and m is nonzero. Then m is called a divisor of n if n = mt for some integer t; that is, when m divides n, the remainder is 0.
End-of-file (EOF)-controlled while loop
A while loop that stops when it reaches the end of the input file
Fibonacci number
A number in the Fibonacci sequence
Fibonacci sequence
an = an-1 + an-2
Flag variable
A Boolean variable used to control the execution of a while loop
Flag-controlled while loop
Uses a Boolean variable to control the execution of the loop
for loop (indexed loop)
Used to simplify the writing of counter-controlled loops; consists of an initialization statement, the loop condition, and the update statement
for loop control variable
A loop control variable in a for loop; also called an indexed variable
Infinite loop
A loop that continues to execute endlessly
Initialization
Setting the starting value of the loop control variable
Loop control variable (LCV)
A variable that controls the end of the loop
Loop Test
Expression in an if statement which determines whether to execute the statement that follows it
Nesting
A process that involves putting one control structure inside another
Posttest loop
A loop in which the loop condition is evaluated after executing the body of the loop
Pretest loop
A loop in which the loop condition is evaluated before executing the body of the loop
Sentinel
An arbitrary value used to stop the execution of a loop
Sentinel-controlled while loop
A while loop that uses a sentinel value to end the loop
while loop
A looping structure