ITCS 1212L Chapter Notes -Multiplication Table
Document Summary
Post-lab 7: (9 points) you were told that when you are using the for-loop, you should determine the initial value of the loop control variable, the condition and the update depending on the logic of your program. What will happen if: you forget to initialize your loop control variable. Syntax error, code will not compile: you forget to include your condition. Infinitely loops, since the variable continues to increase/decrease: you forget to include the update rule. Infinitely loops, since the variable does not change the condition will always be true: (12 points) use de" morgan"s law to convert each of these expressions to a form without parenthesis: (look up de" morgan"s. !a || !b (a && b && c) Determine the ones that are pre-test loops as well as post-test loops. Do-while loop: (5 points) how many times will the following loop run? char x; do cout << enter your input.