To produce the output
2 4 6 8 10
which should be the loop conditional expression to replace the question marks?
int n = 0;
do
{
n = n + 2;
Console.Write("{0}\t", n);
} while (????);
a. n < 11
b. n < 10
c. n < 8
d. n > = 2
e. n > 8
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.