Home /
Expert Answers /
Computer Science /
question-12-3-points-what-is-the-output-of-the-following-code-snippet-int-i-1-while-i-l-pa287
(Solved): Question 12 (3 points)
What is the output of the following code snippet?
int i = 1;
while (i &l ...
Question 12 (3 points)
What is the output of the following code snippet?
int i = 1;
while (i < 10)
{
cout << i << " ";
i = i + 2;
if (i == 5)
{
i = 9;
}
}
Question 12 options:
1 3 5
1 3 9
1 3 5 7
1 3 5 9