What is the output produced by the following (when embedded in a correct program with x declared to be of type int)?
x = 10;
while (x > 0)
{
cout << x << endl;
x = x - 3;
}
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'.