How many times does each of the following loops execute? Assume that i is not changed in the loop body.
i. for (i = -10; i <= 10; i++)
ii. for (i = 10; i >= 0; i++)
iii. for (i = -10; i <= 10; i = i + 3)
iv. for (i = -10; i <= 10; i = i + 2)
i. 21
ii. infinite loop
iii. 7
iv. 11
Computer Science & Information Technology
You might also like to view...
Themes can be found within the ________ tab in the Themes group
A) Insert B) View C) Page Layout D) Theme
Computer Science & Information Technology
A method containing a(n) ____________ allows you to specify which parameter variable the argument should be passed to.
a. named argument b. dynamic parameter c. named constant d. alternative argument
Computer Science & Information Technology