What is the output of the following program segment? (2) int count = 1; do cout while (count++ cout What is the output of the following code? (6) int num = 12; while (num >= 0) { if (num % 5...


What is the output of the following program segment? (2)


int count = 1;



do cout <><>



while (count++


cout


What is the output of the following code? (6)


int num = 12;


while (num >= 0)



{



if (num % 5 == 0)



break;



cout <><>



num = num - 2;


}


cout


What is the output of the following code? (6)


int num = 12;


while (num >= 0)



{



if (num % 5 == 0)



{



num++;



continue;



}



cout <><>



num = num - 2;



} cout


What does a break statement do in a loop? (6)





May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here