Question: Assume n is an integer. Consider the following for loop: for (i = n; i >= 0; i = i-5) } 1. (10 points) The

Assume n is an integer. Consider the following for loop: for (i = n; i >= 0; i = i-5) } 1. (10 points) The value of i can NOT be: A. n B. n-5 C. n-30 D. n-51 1 2. (10 points) In the LAST iteration, the value of i can NOT be: A. 5 B. 4 C. 3 D. 2 E.1 3. (10 points) The total number of iterations is: A. n B. n/5 C. (n/5) +1 C. [n/5] D. [n/5)+1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
