2
answers
0
watching
181
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.

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Nelly Stracke
Nelly StrackeLv2
17 Sep 2018
Already have an account? Log in
Start filling in the gaps now
Log in