public class Test { public static void main(String[] args) { int x = 0.0; for (int i = 0; i < 10; i++) { x += i; } System.out.println(x); } }
(a) In the body of the loop, x is out of scope. (b) After the loop, x is out of scope. (c) x isn't declared. (d) x isn't initialised. (e) None of the above.
x
Select the most appropriate answer.