4
answers
0
watching
644
views
17 Sep 2018
15. What will the following method print when the input number n has value 5 public static void mystery (int n) { for (int i = -1; i < n; System.out.print (i + " ")) { i++; (A) 0 1 2 3 4 5 (B) 01234 (C) -1 0 1 2 3 4 5 (D) -101234 (E) The code does not compile.
15. What will the following method print when the input number n has value 5 public static void mystery (int n) { for (int i = -1; i < n; System.out.print (i + " ")) { i++; (A) 0 1 2 3 4 5 (B) 01234 (C) -1 0 1 2 3 4 5 (D) -101234 (E) The code does not compile.
16 Feb 2023
Already have an account? Log in
miopicdreamLv3
21 Jul 2022
Already have an account? Log in
Nelly StrackeLv2
17 Sep 2018
Already have an account? Log in