CIS 230 - Visual Basic
Ch. 7 Worksheet #4 Answers
Determine the final values of any variables upon the termination of each loop. If the loop is infinite, simply write "infinite loop". If there is a syntax error, write "syntax error".
1. For k = 20 To 30
Step 2 k = 32 |
2. t = 40 Do t = t - 4 Loop Until t < 8 t = 4 |
3. f = 69 f = syntax error |
4. q = 65 q = 101 |
5. For z = 25 To 125
Step 25 z = 150 |
6. v = 12 v = 34 m = 4 |