Solved

What Output Does This While Loop Generate? J = 6;

Question 43

Multiple Choice

What output does this while loop generate? j = 6;
While (j > 0)
{
System.out.print(j + ", ") ;
J--;
}


A) No output is generated.
B) 6, 5, 4, 3, 2, 1
C) 6, 5, 4, 3, 2, 1,
D) The output is infinite.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions