Question: What numbers will the following code display on the computer screen? int x = 0; do { cout < < x < < endl; x
What numbers will the following code display on the computer screen?
int x = 0;
do
{
cout << x << endl;
x += 1;
} while (x < 5);
a. 0, 1, 2, 3, 4
b. 0, 1, 2, 3, 4, 5
c. 1, 2, 3, 4
d. 1, 2, 3, 4, 5
Step by Step Solution
3.51 Rating (171 Votes )
There are 3 Steps involved in it
a ... View full answer
Get step-by-step solutions from verified subject matter experts
