A good answer might be:
Now show the
| ||||||
Incrementing by an amount in a VariableHere is a program fragment and its JavaScript equivalent that uses an increment amount contained in a variable. Try to predict what will be output each time you run the program.
Here is a JavaScript version of this loop.
| ||||||
QUESTION 9:What is the smallest value of inc such that the loop body will execute only one time? Confirm your answer by testing it with the program. Click Here after you have answered the question |