What is the output of the following code? (4)
for (int k = 2; k <= 10000;=”” k=”k” *=”” k) =””>
cout < k=””>< “=”” “;=””>
cout <>
What is the output of the following C++ program segment? Assume all variables are properly declared. (4)
for (j = 0; j < 8;=”” j11)=””>
cout < j="" *="" 25="">< "="" -="">
if (j != 7)
cout < (j="" +="" 1)="" *="" 25="" -="" 1="">< endl;="">
else
cout < (j="" +="" 1)="" *="" 25="">< endl;="">