Solved

What Values Does Counter Variable I Assume When This Loop

Question 19

Multiple Choice

What values does counter variable i assume when this loop executes?
For (int i = 20; i >= 2; i = i - 6)
{
System.out.print(i + ",") ;
}


A) 20, 14, 8, 2
B) 20, 14, 8, 2, -4
C) 20, 14, 8
D) 14, 8, 2

Correct Answer:

verifed

Verified

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

Related Questions