Given the following while loop, what is the value of ‘sum’ after the 3rd time through the loop, at the point of the –HERE– listed below in the code?
int counter = 30;
int sum = 20;
while (counter >= 0) {
counter++;
sum = sum + counter -3;
counter = counter – 3;
// –HERE–
if (sum <= counter) {
sum = counter * 4;
} else {
sum = counter + 2;
}
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
