Program segment

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;="">

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X