To produce the output 2 4 6 8 10 which should be the loop conditional expression to
Question:
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;
Write("{0}\t", n);
}
while (????);
a. n < 11
b. n < 10
c. n < 8
d. n >= 2
e. n > 8
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285856872
5th Edition
Authors: Barbara Doyle
Question Posted: