Multiple Choice
What is the output of the following C++ code? num = 10;
while (num > 10)
num = num - 2;
cout << num << endl;
A) 0
B) 6
C) 8
D) 10
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: The control statements in the for loop
Q6: To generate a random number, you can
Q6: Consider the following code. <br>int limit;<br>Int
Q8: What is the initial statement in
Q8: In _ structures, the computer repeats particular
Q9: Putting one control structure statement inside another
Q9: In a while and for loop, the
Q18: Assume that all variables are properly declared.The
Q22: Which of the following statements generates a
Q33: _ loops are called posttest loops.<br>A) break<br>B)