Skip to main content

Practice · 1 of 4

Mixed 1: predict the output

CHALLENGE
Difficulty: advanced+25 XP

No topic given. Predict and return the exact output: ``java int[] a = {3, 8, 2}; int x = 0; for (int v : a) { if (v > 4) { x += v; } } x *= 2; System.out.print(x); ``

Back to lesson: Practice: Mixed set: no labels