CIS 230 - Visual Basic
Ch. 7 Worksheet #1
Determine how many times the following loops iterate and determine the final values of any variables upon the termination of each loop. If the loop is an infinite, simply write "infinite loop". If there is a syntax error, write "syntax error".
1. For j = 1 To 11 j = |
2. For m = 10 To 23 Step 4 statements Next m m = |
3. For intLoop = 1 To
Len("Georgia") intLoop = |
4. k = 2 k = |
5. w = 45 w = |
6. a = 5 a = b = |
7. c = 13 c = d = |
8. For s = 14 To 28
Step 4/2 s = |
9. For h = 15 To 3
Step -5 h = |