For purposes of Social Security disability benefits, a person with a disability must have a severe disability (or combination of disabilities) that has lasted, or is expected to last, at least 12 months or result in death, and which prevents working at a substantial gainful activity level.
The for loop. 8. A counter variable is used to control or keep track of the number of times a loop. iterates. In a loop, the counter is usually incremented or decremented. If the. counter variable is not properly initialized, it will not hold the correct number. 9. An accumulator is used to keep a running total of numbers. In a loop, a value is. usually added to the current value of the accumulator.
Incrementing and Decrementing the Counter Variable. Using the Step keyword, you can increment or decrement the counter by the value you specify. In the following example, the counter variable J is incremented by 2 each time the loop repeats. When the loop is finished, Total is the sum of 2, 4, 6, 8, and 10. To decrease the counter variable, use a negative Step value. When you do this, you should specify an end value that is less than the start value. In the following example, the counter variable N is decreased by 2 each time the loop repeats. When the loop is finished, Total is the sum of 16, 14, 12, 10, 8, 6, and 4.