Question: I need help with the following question. I just needed some opinions about which would be the right answer although I know the answer, I
I need help with the following question. I just needed some opinions about which would be the right answer although I know the answer, I am really not certain about it.
Circle all of the following for loops which will cause the body of the loop to be executed exactly 10 times.
a) for(int i = 0; i <= 10; i++)
b) for(int i = 1; i < 10; i++)
c) for(int i = 2; i <= 11; i++)
d) for(int i = 2; i < 12; i++)
e) none of these for loops will execute the loop 10 times
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
