What is the output of the following code?
int x = 10, y = 4;
do
{
x = x – 2;
y = y + 4;
cout << x << “ “;
} while (y <= 16);
x = x + 1;
cout << x << “ “ << y;
a) 8 6 4 2 3 20
b) 8 6 4 5 16
c) 10 8 6 4 5 20
d) none of the above
a) 8 6 4 2 3 20
Computer Science & Information Technology
You might also like to view...
A(n) ________ is an image that represents facial expressions
A) photo B) file C) emoticon D) link
Computer Science & Information Technology
To run spell check in Writer, you use the ________ command found on the Menu bar
Fill in the blank(s) with correct word
Computer Science & Information Technology