In the following program segment, which variable is the loop control variable (also knownas the counter variable) and which is the accumulator?int a, x = 0, y = 0;while (x <>{a = x * 2;y += a;x++;}System.out.println("The sum is " + y);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here